سؤال

I've started to fix a messed up commit by using interactive rebase (edit) in the shell but I've forgotten to continue the rebase.

Shell:

git rebase -i HEAD~1
[force edit on commit]
git commit --ammend
git reset ...

After that I just made further commits in eclipse (egit). How can I rescue these commits? Respectively what will happen with them when I just continue the rebase in the shell?

هل كانت مفيدة؟

المحلول

The rebase --continue will proceed where it stops, that is, it will replay the rest of the commits not yet rebased above your intermediate changes.

To rescue your intermediate commits, you can cherry-pick them, or even call rebase -i again.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top