git clone 仓库链接仓库链接可以是https和ssh的
git initgit statusgit diffgit add .git add -p <file>git commit -agit commit请勿修改已发布的提交记录
git commit --amendgit loggit log -p <file>git blame <file>git branch -avgit checkout <branch>git branch <new-branch>git checkout --track <remote/branch> <new-branch>git branch -d <branch>git tag <tag-name>git remote -vgit remote show <remote>git remote add <shortname> <url>git fetch <remote>git pull <remote> <branch>git push <remote> <branch>git branch -dr <remote/branch>git push --tagsgit merge <branch>请勿重置已发布的提交
git rebase <branch>git rebase --abortgit rebase --continuegit mergetoolgit add <resolved-file>
git rm <resolved-file>git reset --hard HEADgit checkout HEAD <file>通过创建一个截然不同的新提交
git revert <commit>git reset --hard <commit>git reset <commit>git reset --keep <commit>