Reset branch completely to repository state?

This question already has an answer here:

  • Reset local repository branch to be just like remote repository HEAD 18 answers

  • 如果您只在本地完成,则可以切换到分支主机,删除您的本地功能分支并检出远程分支增益:

    git checkout master
    git branch -d featurebranch
    git fetch
    git checkout -b featurebranch origin/featurebranch
    
    链接地址: http://www.djcxy.com/p/4464.html

    上一篇: 在Git中只导出修改并添加的文件夹结构的文件

    下一篇: 将分支完全重置为存储库状态?