master :默认开发分支
origin :默认远程版本库
Head :默认开发分支
Head^ :Head的父提交
git clone
git init
git status
git diff
git add .
git add <file>
git mv <old> <new>
git rm <file>
git rm --cache <file>
git commit -m “commit message”
git commit --amend
git log
git log -p <file>
git blame <file>
git reset --hard HEAD
git checkout HEAD <file>
git revert <commit>
git branch
git checkout <branch/tag>
git branch <new-branch>
git branch -d <branch>
git tag
git tag <tagname>
git tag -d <tagname>
git merge <branch>
git rebase <branch>
git remote -v
git remote show <remote>
git remote add <remote> <url>
git fetch <remote>
git pull <remote> <branch>
git push <remote> <branch>
git push <remote> :<branch/tag-name>
git push --tags