1. 查看所有分支
git branch -a
2. 查看本地分支
git branch
3. 切换不存在的分支
git checkout -b xxxxx origin/xxxxx4. 切换本地存在的分支git checkout xxxxx
5. 解决拉取代码冲突(回退)
git reset --hard
git pull
6. 清理本地分支缓存
git fetch --prune origin
7.删除远程分支
git push origin --delete xxxxx
8. 删除本地分支
git branch -d xxxxx
9.git pull 避免每次都要求输入用户名和密码
全局配置
git config --global credential.helper store
或者局部配置
git config credential.helper store