假设我想将我的linux分支内容替换master分支的内容。

# 切换到master分支
git checkout master
# 再将本地的master分支重置成linux
git reset --hard linux  
# 最后推送到远程仓库master分支
git push origin master --force 

转载自“leo108”的回答,http://www.oschina.net/question/1993919_224813

相关文章:

  • 2022-12-23
  • 2021-11-15
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2021-03-31
相关资源
相似解决方案