It's always hard the first time you do something. Especially when you are collaborating, making mistakes isn't a comfortable thing. We wanted to simplify the way new open-source contributors learn & contribute for the first time. This repo will take you from the very scratch to fianlly contributing to the open source.
You can get your own fork/copy of Hacktoberfest by using the Fork button or clicking this at top-right of your screen.
NOTE: commands are to be exceuted on Linux, Mac and Windows(using Git Bash)
You need to clone (download) it to local machine using
$ git clone https://github.com/codesocbitd/Hacktoberfest.gitThis makes a local copy of repository in your machine.
Once you have cloned the codesocbitd repository in Github, move to that folder first using change directory command on Linux, Mac and Windows(powershell to be used).
# This will change directory to a folder Hacktoberfest
$ cd HacktoberfestMove to this folder for all other commands.
Run the following commands to see that your local copy has a reference to your forked remote repository in Github ![]()
$ git remote -v
origin https://github.com/Your_Username/BITMcontributions.git (fetch)
origin https://github.com/Your_Username/BITMcontributions.git (push)Now, lets add a reference to the original BITMcontributions](https://github.com/greyhatlinux/BITMcontributions/) repository using
$ git remote add upstream https://github.com/greyhatlinux/BITMcontributions.gitThis adds a new remote named upstream.
See the changes using
$ git remote -v
origin https://github.com/Your_Username/BITMcontributions.git(fetch)
origin https://github.com/Your_Username/BITMcontributions.git (push)In your ase you will see
$ git remote -V
upstream https://github.com/greyhatlinux/BITMcontributions.git (fetch)
upstream https://github.com/greyhatlinux/BITMcontributions.git (push)Once you have completed these steps, you are ready to start contributing by checking our Help Wanted Issues and creating pull requests.
Whenever you are going to make contribution. Please create seperate branch using command and keep your master branch clean (i.e. synced with remote branch).
# It will create a new branch with name Branch_Name and switch to branch Folder_Name
$ git checkout -b contributorCreate a seperate branch for contibution and try to use same name of branch as of folder.
Add your contribution and save in the editor.
To add the changes to the branch. Use
# To add all files to branch Folder_Name
$ git add .Type in a message relevant for the code reveiwer using
# This message get associated with all files you have changed
$ git commit -m 'relevant message'Now, Push your awesome work to your remote repository using
# To push your work to your remote repository
$ git push -u origin contributorFinally, go to your repository in browser and click on compare and pull requests.
Then add a title and description to your pull request that explains your precious efforts.
After making a branch with your username, checkout your branch.
Open the file called index.html and add the following changes after following the instructions in class.
Format :
<tr>
<td>Swapnil Sinha</td> //Name
<td>BTECH/60014/18</td> //Roll
<td>CSE</td> //Branch
<td>reach_swapnil@outlook.com</td> //Email
</tr>
