查询本地分支 git branch -a
查询仓库分支 git branch -r
更新分支到本地 git fetch
切换分支 git checkout branchName
拉去代码 git pull
初始化 git init
回退 git reset --merge
删除分支 git branch -d branchName
Could not reset index file to revision 'HEAD' git reset --HEAD
强制更新
-
git fetch --all
-
git reset --hard origin/master