EGit又来了。我犯了一个错误,试图在 EGit 中切换到不同的分支,但它以某种方式搞砸了,并且没有检查出任何分支。然后我对这个非分支进行了提交,然后当我意识到我没有跟踪正确的分支时,我运行了以下命令:
$ git checkout issue2
Warning: you are leaving 1 commit behind, not connected to any of your branches:
bada553d My commit message
If you want to keep them by creating a new branch, this may be a good time to do so with:
git branch new_branch_name ....
Branch issue2 set up to track remote branch issue2 from origin.
Switched to a new branch issue2.
现在我已经搞砸了,我如何将该提交与我当前的分支相关联?我对创建一个全新的分支不感兴趣,我只想将该提交拉入我的分支,issue2
.