git常用命令根据场景分类
git init
git config --global user.name 'xxx'
git config --global user.email 'xxx@qq.com'
git clone https://gitee.com/xxx/xxx.git
git clone git@gitee.com:xxxx/xxx.git
git remote -v
git remote rm origin
git remote add origin git@gitee.com:xxxx/xxxxx.git
git push -u origin master
git config --global credential.helper store
git add .
git status
git checkout <filename>
git reset HEAD
git log --oneline
git reset --hard <commit-id>
git commit -m"提交说明"
git log --online
git push <branch-name>
git status
git stash
git pull <branch-name>
git stash list
git stash pop
git branch
git branch <branch-name>
git push origin <branch-name>
git push -u origin <branch-name>
git branch -r
git fetch
git checkout -b <local-branch-name> origin/<remote-branch-name>
git checkout --track origin/<remote-branch-name>