rebase on before first commit / create empty branch

106 views
Skip to first unread message

ingo...@gmail.com

unread,
Jan 22, 2018, 12:01:38 PM1/22/18
to tortoisegit-users
Hi group,

I can't rebase on before the first commit in git show log, so I can't move the first commit or something before, because it is never shown in the rebase commit list.

I also tried to create an empty branch (with an empty commit only) to rebase the other on this one and so move the first commit of, but not possible either, a new branch must be based on another, there seems to be no empty root to base on.

Seems to be no solution inside Tortoise Git.

Sven Strickroth

unread,
Jan 22, 2018, 5:58:28 PM1/22/18
to tortoise...@googlegroups.com, ingo...@gmail.com
Hi,

TortoiseGit does not allow to rebase the root commit with the
rebase dialog right now (cf. https://tortoisegit.org/issue/3018).

However, you could do a workaround, e.g. create a new branch on the root
commit, switch to it, change and amend it. Then rebase the old branch
onto this new commit (or reset to the root commit, change it, amend id
and then cherry-pick all newer commits or rebase the pother branch onto
this commit).

Or use git cli.

--
Best regards,
Sven Strickroth
PGP key id F5A9D4C4 @ any key-server
Reply all
Reply to author
Forward
0 new messages