diff --git a/.github/ISSUE_TEMPLATE/contribution.md b/.github/ISSUE_TEMPLATE/contribution.md index 5c685c5f..7bb43e27 100644 --- a/.github/ISSUE_TEMPLATE/contribution.md +++ b/.github/ISSUE_TEMPLATE/contribution.md @@ -1,10 +1,37 @@ ---- -name: contribution -about: Before contribtuing to this rep check this out -title: '' -labels: '' -assignees: '' - ---- - +# Contribution +- Fork this [repo](https://github.com/swaaz/basicprograms) +- Clone it using command : +
$ git clone paste_the_copied_url.+- Open folder "C/Python" : +
$ cd filder_name+ eg:cd C +- Create new branch : +
$ git branch new_branch_name+ eg:git branch swaaz +- Checkout to new branch from master branch : +
$ git checkout new_branch_name+ eg-git checkout swaaz + ## Check whether the program which you want is exist in the _readme_ file + ### If it's existing then don't waste your time by adding it again and think of adding some other program + ### If it's not existing then + - Create a new folder +
$ mkdir program-number+ eg:mkdir program-35 + - Change directory to the new created folder +
$ cd folder_name+ - Create a file *program.c* + - Write the code inside program.c file + ### NOTE: Before writng code refer [*sample*](https://github.com/swaaz/basicprograms/blob/swaaz/C/sample.c) file and write the code in the same format as given + - Add file : +
$ git add -A+- Commit file : +
$ git commit -m "comment"+ eg-git commit -m "program added" +- Push the file : +
$ git push origin -u 'branch_name'+ eg-git push origin -u swaaz +- The given link should be copied and pasted in web browser or go to your repo in web browser +- Create a pull request +## Still if you did not understand how to create pull request : +[click here](https://gitme.js.org/) diff --git a/C/sample.c b/C/sample.c new file mode 100644 index 00000000..9856bb69 --- /dev/null +++ b/C/sample.c @@ -0,0 +1,3 @@ +/* Write the complete question between these tags*/ + +// start writng code from here diff --git a/readme.md b/readme.md index 39f1a208..b41b556d 100644 --- a/readme.md +++ b/readme.md @@ -1,2 +1,4 @@ # Basic programs -## This repo contains basics programs in c programming language and python. \ No newline at end of file +## This repo contains basics programs in c programming language and python. +## Contribution +If you want to contribute to this repo then [click here](https://github.com/swaaz/basicprograms/blob/swaaz/.github/ISSUE_TEMPLATE/contribution.md)