Undoing a 'git push'

前端 未结 12 1100
遥遥无期
遥遥无期 2020-11-22 13:45

Here\'s what I did on my supposed-to-be-stable branch...

% git rebase master
First, rewinding head to repla         


        
12条回答
  •  一整个雨季
    2020-11-22 13:56

    I believe that you can also do this:

    git checkout alpha-0.3.0
    git reset --hard cc4b63bebb6
    git push origin +alpha-0.3.0
    

    This is very similar to the last method, except you don't have to muck around in the remote repo.

提交回复
热议问题