美文网首页
2018-07-03

2018-07-03

作者: 听风抚琴看海 | 来源:发表于2018-08-01 15:45 被阅读3次

    git版本怎么删除远程分支

    1. 首先把本地代码回滚到你想要的地方

    git reset --hard commit_id(可用 git log –oneline 查看)

    2. 然后使用git push origin HEAD --force 就可以把远程代码和本地代码同步了 

    (慎用: 因为会修改远程仓库的代码,可能影响其他人的代码)

    相关文章

      网友评论

          本文标题:2018-07-03

          本文链接:https://www.haomeiwen.com/subject/rdlduftx.html