Reset branch completely to repository state?
This question already has an answer here:
如果您只在本地完成,则可以切换到分支主机,删除您的本地功能分支并检出远程分支增益:
git checkout master
git branch -d featurebranch
git fetch
git checkout -b featurebranch origin/featurebranch
链接地址: http://www.djcxy.com/p/4464.html
下一篇: 将分支完全重置为存储库状态?