You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NaNaDi edited this page Apr 13, 2018
·
5 revisions
Initialization
git clone <URL> - clone a repository from github to your local computer
After completed an exercise
git add <FilesToAdd> or git add . - add your changes to your local repository git commit -m '<CommitMessage>' - commit your changes and write a brief commit message git push - push your changes to your github repository
Useful commands
git checkout -b <Branchname> - create a new branch and switch to it git push origin <Branchname> - push your created branch to github git branch - check on which branch you are working right now git checkout <Branchname> - switch branches git status - check status of your repository (very helpful before calling git add) git help - provides some helpful commands