1.打开git窗口 2.找到线上分支 3.点击线上最后一个分支右键,点击Reset Current Branch to Here... ,就可以把本地代码回退到线上最后一个分支的状态,同样适用于回退版本操作。