git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: lists@haller-berlin.de (Stefan Haller)
To: rcdailey.lists@gmail.com (Robert Dailey), git@vger.kernel.org (Git)
Subject: Re: Adding a commit to the front of my branch?
Date: Mon, 11 Jan 2016 15:11:25 +0100	[thread overview]
Message-ID: <1mgv8hf.iib6fg1g9uszaM%lists@haller-berlin.de> (raw)
In-Reply-To: <CAHd499B8gRMVWnUBZ0aO2RtokYqTm6fO7+7zfbsJNTnKw4MVsQ@mail.gmail.com>

Robert Dailey <rcdailey.lists@gmail.com> wrote:

> Normally to add commits on my branch, I perform an interactive rebase:
> 
> $ git rebase -i origin/master
> 
> I mark the commit I want to put the new commit on top of as 'edit'.
> However, if I want to add a commit to the front of my branch, I don't
> really have a commit to mark as "edit".

Instead of marking commits as edit, I usually add "x false" at the place
where I want to add a commit. With this I find it easier to see where
the new commit goes, and it also works before the first commit.


-- 
Stefan Haller
Berlin, Germany
http://www.haller-berlin.de/

  reply	other threads:[~2016-01-11 14:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-11 13:36 Adding a commit to the front of my branch? Robert Dailey
2016-01-11 14:11 ` Stefan Haller [this message]
2016-01-13 16:18   ` Robert Dailey
2016-01-13 16:40     ` Stefan Haller
2016-01-13 17:19       ` Robert Dailey
2016-01-11 14:16 ` John Keeping
2016-01-13 16:21   ` Robert Dailey

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=1mgv8hf.iib6fg1g9uszaM%lists@haller-berlin.de \
    --to=lists@haller-berlin.de \
    --cc=git@vger.kernel.org \
    --cc=rcdailey.lists@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).