Warning: you are leaving 1 commit behind, not connected to any of your branches

前端 未结 1 593
生来不讨喜
生来不讨喜 2021-01-30 10:00

EGit strikes again. I made the mistake of trying to switch to a different branch in EGit and it somehow messed up and checked out no branch. I then made a commit to this non-bra

相关标签:
1条回答
  • 2021-01-30 11:02

    you can git cherry-pick bada553d if it's just the one commit.

    You can also reference anywhere you've been by using the reflog:

    git reflog
    

    then use one of those commits:

    git checkout -b temp HEAD@{3}
    

    to checkout and make a branch temp from where your current commit was 3 "times" ago. It's a bread crumb of where you used to be.

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