*check the current branch
```git branch``` will show all the branches of the current repo;
the starred one is the branch you are on
pull from another branch
git pull is the shorthand for git pull <remote> <branch>
, default git pull origin master
use git remote -v
for the remotes;
use git remote add <remote name> <url>
for setting new remote address
merge another branch
creating new branches
git log # check previous commit
git revert <unwanted previous commit hash>
git checkout <test commit hash> # checkout (not "pull" !) a history version of the code
原文:https://www.cnblogs.com/manqing/p/10481020.html