Git: Invalid (Too Many) Lists of Interactive Jump Lists

When I run git rebase -i HEAD~2 , it lists 11 commits instead of 2. Why?

What I did before this:

  • Checked at the top / branchA
  • Restored my new local copy of branchA with the wizard
  • Tried to push my local branch A back
    • Git complained that the branches are out of sync, and first pull upstream
  • Elongated / Branch A to Local Branch A
  • Pushed local branch A up / branch A (success)
+7
git git-interactive-rebase
source share
1 answer

It depends on how your git tree looks. For example, a merge may have two or more parents. Depending on this, your latch may have several grandparents.

You probably need to reinstall using

 git rebase -i HEAD^1^2 git rebase -i HEAD^2^1 git rebase -i HEAD^2^2 

(one of these three).

See here for more details on relative git commit.

+5
source share

All Articles