What git gotchas have you been caught by?

后端 未结 9 2087
半阙折子戏
半阙折子戏 2020-12-25 08:51

The worst one I\'ve been caught by was with git submodules. I had a submodule for a project on github. The project was unmaintained, and I wanted to submit patches, but co

9条回答
  •  北海茫月
    2020-12-25 09:47

    1. Work work work
    2. Stash changes
    3. Fetch latest
    4. Rebase
    5. Get conflicts, fix them
    6. Forget to "git rebase --continue"
    7. Pop stash
    8. Realize I forgot to "git rebase --continue"
    9. git rebase --abort
    10. Changes I stashed originally - pfffft, gone.

提交回复
热议问题