How to permanently remove few commits from remote branch

后端 未结 8 1711
予麋鹿
予麋鹿 2020-11-27 09:07

I know that\'s rewriting of history which is bad yada yada.

But how to permanently remove few commits from remote branch?

8条回答
  •  渐次进展
    2020-11-27 09:25

     git reset --soft commit_id
     git stash save "message"
     git reset --hard commit_id
     git stash apply stash stash@{0}
     git push --force
    

提交回复
热议问题