Re: How to reorder all commits include the initial commit
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Mar 17, 2012, 14:26 UTC
- Message-ID
- <m3k42jl2wn.fsf@localhost.localdomain>
- In-Reply-To
- <CAFT+Tg_DmqxiK1qw1YvNZtY07ZaZ89+JWohdWw2fm8f=6hAwiQ@mail.gmail.com>
semtlenori@gmail.com writes:
Show 10 quoted lines
> Sometimes, I need to reorder all commits, which include the initial > commit, in my branch. > So I tried it using git-rebase as follows, but it failed with the fatal error. > > (supposing the initial commit is 793ea88) > $ git rebase -i 793ea88^ > fatal: Needed a single revision > invalid upstream 793ea88^ > > How can I do that?
Use `--root` option.
-- Jakub Narebski