git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: semtlenori@gmail.com
Cc: git@vger.kernel.org
Subject: Re: How to reorder all commits include the initial commit
Date: Sat, 17 Mar 2012 07:26:18 -0700 (PDT)	[thread overview]
Message-ID: <m3k42jl2wn.fsf@localhost.localdomain> (raw)
In-Reply-To: <CAFT+Tg_DmqxiK1qw1YvNZtY07ZaZ89+JWohdWw2fm8f=6hAwiQ@mail.gmail.com>

semtlenori@gmail.com writes:

> 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

  parent reply	other threads:[~2012-03-17 14:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-17 13:15 How to reorder all commits include the initial commit 이응준
2012-03-17 14:06 ` David Barr
2012-03-17 14:26 ` Jakub Narebski [this message]
2012-03-17 19:45   ` Yi, EungJun
2012-03-18  2:58     ` Jiang Xin
2012-03-18 19:05       ` Yi, EungJun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3k42jl2wn.fsf@localhost.localdomain \
    --to=jnareb@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=semtlenori@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).