Undoing a 'git push'

前端 未结 12 1125
遥遥无期
遥遥无期 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 14:00

    A way to do it without losing the changes you wanted:

    git reset cc4b63b 
    git stash
    git push -f origin alpha-0.3.0
    git stash pop
    

    Then you can choose the files you meant to push

提交回复
热议问题