Github重置分支

时间:2020-06-26 17:25:19   收藏:0   阅读:72

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

  1. 切换到master分支
    git checkout master

  2. 再将本地的master分支重置成linux
    git reset --hard linux

  3. 最后推送到远程仓库master分支
    git push origin master --force

原文:https://www.cnblogs.com/JeromeLong/p/13195578.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!