From 3efeb4e8e33eed08f186cca41455248ad9520b23 Mon Sep 17 00:00:00 2001 From: Swasthik shetty <42874695+swaaz@users.noreply.github.com> Date: Sun, 15 Sep 2019 18:34:53 +0530 Subject: [PATCH 1/8] Update contribution.md --- .github/ISSUE_TEMPLATE/contribution.md | 42 ++++++++++++++++++++------ 1 file changed, 33 insertions(+), 9 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/contribution.md b/.github/ISSUE_TEMPLATE/contribution.md index 5c685c5f..0a1f4a90 100644 --- a/.github/ISSUE_TEMPLATE/contribution.md +++ b/.github/ISSUE_TEMPLATE/contribution.md @@ -1,10 +1,34 @@ ---- -name: contribution -about: Before contribtuing to this rep check this out -title: '' -labels: '' -assignees: '' - ---- - +# Submission +- Fork this [repo](https://github.com/swaaz/basicprograms) +- Clone it using command : +
$ git clone paste_the_copied_url.+- Open folder "C/python" using command : +
$ cd filder_name+ eg:cd C +- Create new branch using command : +
$ git branch new_branch_name+ eg:git branch swaaz +- Checkout to new branch from master branch using command: +
$ git checkout new_branch_name+ eg-git checkout swaaz + ## Check whether the program which you want is exist in the given table + +- Create file using command : +
$ nano username.md+ eg: nano swaaz.md +- Fill all the required details +- Save file using : + ctrl+x -> y +- Add file using command: +
$ git add -A+- Commit file using command: +
$ git commit -m "comment"+ eg-git commit -m "profile added" +- Push the file using command: +
$ git push origin -u 'branch_name'+ eg-git push origin -u swaaz +- The given link should be copied and pasted in web browser +- Click on create pull request. +## Still if you did not understand how to submit + Click [here](https://gitme.js.org/) From be9387be65e32537048772afdc4e666e7381efda Mon Sep 17 00:00:00 2001 From: Swasthik shetty <42874695+swaaz@users.noreply.github.com> Date: Sun, 15 Sep 2019 19:15:18 +0530 Subject: [PATCH 2/8] Update contribution.md --- .github/ISSUE_TEMPLATE/contribution.md | 33 ++++++++++++++------------ 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/contribution.md b/.github/ISSUE_TEMPLATE/contribution.md index 0a1f4a90..a9bad137 100644 --- a/.github/ISSUE_TEMPLATE/contribution.md +++ b/.github/ISSUE_TEMPLATE/contribution.md @@ -2,7 +2,7 @@ - Fork this [repo](https://github.com/swaaz/basicprograms) - Clone it using command :
$ git clone paste_the_copied_url.-- Open folder "C/python" using command : +- Open folder "C/Python" using command :
$ cd filder_nameeg:cd C - Create new branch using command : @@ -11,24 +11,27 @@ - Checkout to new branch from master branch using command:
$ git checkout new_branch_nameeg-git checkout swaaz - ## Check whether the program which you want is exist in the given table - -- Create file using command : -
$ nano username.md- eg: nano swaaz.md -- Fill all the required details -- Save file using : - ctrl+x -> y -- Add file using command: + ## 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* file and write the code in the same format as given + - Add file using command:
$ git add -A- Commit file using command:
$ git commit -m "comment"- eg-git commit -m "profile added" + eg-git commit -m "program added" - Push the file using command:
$ git push origin -u 'branch_name'eg-git push origin -u swaaz -- The given link should be copied and pasted in web browser -- Click on create pull request. -## Still if you did not understand how to submit - Click [here](https://gitme.js.org/) +- 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/) From 3beb4f9076dfaa23874d6737d1dd1d9a8ab5f073 Mon Sep 17 00:00:00 2001 From: Swasthik shetty <42874695+swaaz@users.noreply.github.com> Date: Sun, 15 Sep 2019 19:16:50 +0530 Subject: [PATCH 3/8] Update contribution.md --- .github/ISSUE_TEMPLATE/contribution.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/contribution.md b/.github/ISSUE_TEMPLATE/contribution.md index a9bad137..811cb00a 100644 --- a/.github/ISSUE_TEMPLATE/contribution.md +++ b/.github/ISSUE_TEMPLATE/contribution.md @@ -2,13 +2,13 @@ - Fork this [repo](https://github.com/swaaz/basicprograms) - Clone it using command :
$ git clone paste_the_copied_url.-- Open folder "C/Python" using command : +- Open folder "C/Python" :
$ cd filder_nameeg:cd C -- Create new branch using command : +- Create new branch :
$ git branch new_branch_nameeg:git branch swaaz -- Checkout to new branch from master branch using command: +- Checkout to new branch from master branch :
$ git checkout new_branch_nameeg-git checkout swaaz ## Check whether the program which you want is exist in the _readme_ file @@ -22,12 +22,12 @@ - Create a file *program.c* - Write the code inside program.c file ### NOTE: Before writng code refer *sample* file and write the code in the same format as given - - Add file using command: + - Add file :
$ git add -A-- Commit file using command: +- Commit file :
$ git commit -m "comment"eg-git commit -m "program added" -- Push the file using command: +- 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 From 19adc8b09f1d53b3bcc4f6c182520403c00fe966 Mon Sep 17 00:00:00 2001 From: Swasthik shetty <42874695+swaaz@users.noreply.github.com> Date: Sun, 15 Sep 2019 19:20:43 +0530 Subject: [PATCH 4/8] Update readme.md --- readme.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 39f1a208..9a7cd437 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. +## Contribute +If you want to contribute to this repo then [click here](https://github.com/swaaz/basicprograms/blob/swaaz/.github/ISSUE_TEMPLATE/contribution.md) From d8778348b54ad6aaa0be185685f6daa04a552bb5 Mon Sep 17 00:00:00 2001 From: Swasthik shetty <42874695+swaaz@users.noreply.github.com> Date: Sun, 15 Sep 2019 19:21:02 +0530 Subject: [PATCH 5/8] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 9a7cd437..b41b556d 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ # Basic programs ## This repo contains basics programs in c programming language and python. -## Contribute +## Contribution If you want to contribute to this repo then [click here](https://github.com/swaaz/basicprograms/blob/swaaz/.github/ISSUE_TEMPLATE/contribution.md) From 4f7880b47e5ed6d3f536543caea82f130970a201 Mon Sep 17 00:00:00 2001 From: Swasthik shetty <42874695+swaaz@users.noreply.github.com> Date: Sun, 15 Sep 2019 19:22:46 +0530 Subject: [PATCH 6/8] Create sample.c --- C/sample.c | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 C/sample.c 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 From 2385b9c451c93ff19c2d30fd53a479696e919307 Mon Sep 17 00:00:00 2001 From: Swasthik shetty <42874695+swaaz@users.noreply.github.com> Date: Sun, 15 Sep 2019 19:30:53 +0530 Subject: [PATCH 7/8] Update contribution.md --- .github/ISSUE_TEMPLATE/contribution.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/contribution.md b/.github/ISSUE_TEMPLATE/contribution.md index 811cb00a..06dc0101 100644 --- a/.github/ISSUE_TEMPLATE/contribution.md +++ b/.github/ISSUE_TEMPLATE/contribution.md @@ -21,7 +21,7 @@
$ cd folder_name- Create a file *program.c* - Write the code inside program.c file - ### NOTE: Before writng code refer *sample* file and write the code in the same format as given + ### 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 : From 7eb53cf50b070dba77b5ceb1ec63865b6410878c Mon Sep 17 00:00:00 2001 From: Swasthik shetty <42874695+swaaz@users.noreply.github.com> Date: Sun, 15 Sep 2019 19:31:43 +0530 Subject: [PATCH 8/8] Update contribution.md --- .github/ISSUE_TEMPLATE/contribution.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/contribution.md b/.github/ISSUE_TEMPLATE/contribution.md index 06dc0101..7bb43e27 100644 --- a/.github/ISSUE_TEMPLATE/contribution.md +++ b/.github/ISSUE_TEMPLATE/contribution.md @@ -1,4 +1,4 @@ -# Submission +# Contribution - Fork this [repo](https://github.com/swaaz/basicprograms) - Clone it using command :
$ git clone paste_the_copied_url.