How to delete commit that is pushed to the remote repository?

后端 未结 3 1111
你的背包
你的背包 2020-12-15 13:22

A local branch:-

\'feature/100\'

And Remote branches:-

\'master\'

\'Version2\'

Accid

3条回答
  •  醉梦人生
    2020-12-15 13:43

    It's probably too late, but if you want to rewind your pushed branch (master?) by one commit, issue the following command:

    git push origin +master^:master
    

    + makes the push forced, master^ describes the previous-last commit. :master pushes to the remote master branch.

提交回复
热议问题