将分支完全重置为存储库状态?
这个问题在这里已经有了答案:
如果您只在本地完成,则可以切换到分支主机,删除您的本地功能分支并检出远程分支增益:
git checkout master
git branch -d featurebranch
git fetch
git checkout -b featurebranch origin/featurebranch
链接地址: http://www.djcxy.com/p/4463.html
上一篇: Reset branch completely to repository state?
下一篇: How to remove local (untracked) files from the current Git working tree?