Want to contribute to Project-Chronicle? Here's how.
Download Git for Windows here.
cd
into the directory you want to clone into- Type
git clone https://github.com/bhairavmehta95/Project-Chronicle.git
- Sign into github, finish cloning!
- Create your own branch using
git checkout -b enter_branch_name_here
. This will create a new branch calledenter_branch_name_here
, and it will switch you to that new branch.
Branches are ways you can separate your code from everyone elses, and merge them when you feel like the time is right. Since we are on our new branch, we can now add all our files to it.
The way git additions work are simple: You add your files, "commit" them (explaining to others what you did in your changes), and then push them to the branch (the place where the rest of the code lives).
- Open a command prompt, and
cd
into your working directory (where all your files live). - First, we will add all of our files using
git add {{enter file names here, space delimited}}
. If we have a lot of files we need to commit, we can usegit add .
to add all the files in the working directory. - Then, we will write
git commit -m "useful_commit_message"
. This message is important because it shows people what was changed in this commit. - Lastly, we will write
git push enter_branch_name_here
, which is the same as what branch you made in the beginning of the file.
Congratulations on your first commit to Project Chronicle!