What shall I do after my feature branch has been merged into master but I have continued to work on it?

后端 未结 2 1268
陌清茗
陌清茗 2020-12-22 12:37

I just realized that my coworker has merged my feature branch into the master branch in Github, while I have been continuing working on my feature branch on my local machine

2条回答
  •  忘掉有多难
    2020-12-22 13:27

    You can git stash those changes while you create a new branch. git checkout <> then git checkout -b <>.

    You've got a clean copy of master now, so let's get those stashed changes with git stash pop. Now you're back to where you started, with all your already committed changes in the trunk and your new changes ready for commit.

提交回复
热议问题