本地分支
新建本地分支
git checkout -b <new_branch> 删除本地分支
git branch -D <branch> 切换本地分支
git checkout <branch> 获取本地分支列表
git branch --list 远程分支
同步远程分支列表
git remote update origin --prune 回滚远程代码
git reset --hard <commit_id>
git push origin HEAD --force git checkout -b <new_branch> git branch -D <branch> git checkout <branch> git branch --list git remote update origin --prune git reset --hard <commit_id>
git push origin HEAD --force