git - rezmehp/tutorial GitHub Wiki
Final notes
Here is a gist of what we have learnt so far: Git task Notes Git commands Status List the files you've changed and those you still need to add or commit: git status Add files Add one or more files to staging (index): git add git add . Commit Commit changes to head (but not yet to the remote repository): git commit -m "Commit message" Commit any files you've added with git add, and also commit any files you've changed since then: git commit -a Push Send changes to the master branch of your remote repository: git push origin master Update from the remote repository Fetch and merge changes on the remote server to your working directory: git pull Branches Create a new branch and switch to it: git checkout -b