How to undo git flow feature finish?

前端 未结 1 518
攒了一身酷
攒了一身酷 2021-01-30 10:51

I am learning git-flow and I just did git flow feature finish , which merged my feature branch to develop and removed it.

Instead of thi

1条回答
  •  失恋的感觉
    2021-01-30 11:19

    These steps should do the trick:

    Get the sha's needed:

    git log
    

    is the commit right before the merge
    is the last commit on develop before you started working on the feature

    git checkout develop
    git checkout -b feature/
    git reset  --hard
    git checkout develop
    git reset  --hard
    

    Push your feature branch.

    0 讨论(0)
提交回复
热议问题