git初始化, 设置config, 生成ssh-key
git init git config --global user.name="your name" git config --global user.eramil ="yourname@mail.com" ssh-keygen
git add . git commit git push git pull git log git reflog git checkout <path/file>
git reset --hard <commmitID>/<tag> git tag git show tag
git branch git branch <branchname> git switch <branchname> git switch -b <branchname> git checkout -b <branchname> git merge <branchname>
原文:https://www.cnblogs.com/cyang9/p/14289809.html