-
Clone a repository from Github
$ git clone url
-
Create a branch for your additions
$ git checkout -b "new-feature"
-
Make changes
-
"Stage" your changes so git tracks them
$ git add file1 file2
OR$ git add -A
-
Commit your changes (locally, just on your computer)
$ git commit -m "description of changes"
-
Push those changes to the Github repository
$ git push origin branch-name
- "origin" refers to the url of the repository, which is the same as the url you cloned from
-
Repeat steps 3 to 6 until finished with your additions
$ git status
often, maybe after every command when you first start