automatically stash save/pop changes on git rebase?

前端 未结 5 1876
再見小時候
再見小時候 2021-01-30 20:40

my git workflow uses rebase a lot. I always fetch upstream changes (the main repo i forked from) and then merge to my branches, and then rebase to remove useless (to me :D) merg

5条回答
  •  野性不改
    2021-01-30 21:29

    Answer from tjsingleton blogg

    make a command alias of :

    git stash && git pull --rebase && git stash pop

    update

    If you are using idea, pushing with a dirty working dir, it will prompt a dialog, choose rebase / merge, it will do stash, rebase / merge and pop automatically.

提交回复
热议问题