git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Howard Miller <howard@e-learndesign.co.uk>
To: git@vger.kernel.org
Subject: Created branch in wrong place... how to fix?
Date: Wed, 1 Jun 2011 13:47:12 +0100	[thread overview]
Message-ID: <BANLkTingMK3Zv6NZdFAiLXZzJpSZYZmjQA@mail.gmail.com> (raw)

Hi,
I created a branch in a project and did a series of commits. I now
discover that I really wanted to make all those changes against a
completely different branch of the same project. There shouldn't be
any issues as the branch introduces entirely new files (no changes to
existing code).
I'm struggling to see a way to do this without loosing the history.
Some Google'ing suggests 'rebase --onto' but I'm struggling to see how
this works or if it is appropriate. Any pointers much appreciated :)
Thanks.

             reply	other threads:[~2011-06-01 12:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-01 12:47 Howard Miller [this message]
2011-06-01 12:52 ` Created branch in wrong place... how to fix? Tim Guirgies
2011-06-01 13:32 ` Jakub Narebski
     [not found]   ` <BANLkTiktYkvGqc9Wq51-QMKe2kHzcmGXRQ@mail.gmail.com>
2011-06-02  6:28     ` Jakub Narebski

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=BANLkTingMK3Zv6NZdFAiLXZzJpSZYZmjQA@mail.gmail.com \
    --to=howard@e-learndesign.co.uk \
    --cc=git@vger.kernel.org \
    /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).