Relative Content

Tag Archive for gitgit-rebase

How do I git rebase the first commit?

I used git init to create a fresh repo, then made three commits. Now I want to rebase to go back and amend my first commit, but if I do git rebase -i HEAD~3 it shows error – fatal: invalid upstream 'HEAD~3'!

How to rebase to initial revision minus 1 with git

I have five revisions in total and the first commit hash is 123. I want to squash all commits into one. If I do git rebase -i 123 I will end with a minimum of two commits. Any way to specify a virtual revision -1?

Howto rebase to initial revision minus 1 with git

let say I have five revisions in total and the first commit hash is 123. Now I want to squash all commits into one. If I doo git rebase -i 123 I will end with a minimum of two commits. Any way to specify a virtual revision -1?