From: Andrew Sayers <andrew-git@pileofstuff.org>
To: Git Mailing List <git@vger.kernel.org>
Subject: Merging with git-svn - how about this?
Date: Mon, 31 May 2010 16:34:12 +0100 [thread overview]
Message-ID: <4C03D6F4.2010204@pileofstuff.org> (raw)
I'm writing up a wiki page based on the "best way to make my company
migrate to Git" thread from earlier this month, and I'd like to
recommend something for merging (beyond the standard "don't do it").
Here's what I'm planning to write - I'd appreciate any suggestions or
advice people have:
To merge from $from_branch to $to_branch with git-svn, do:
git checkout $to_branch@{0}
git merge --no-ff $from_branch
# Fix any merge conflicts, `git add`, `git commit` etc.
git checkout $to_branch
git cherry-pick -m 1 HEAD@{1}
- Andrew
reply other threads:[~2010-05-31 15:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4C03D6F4.2010204@pileofstuff.org \
--to=andrew-git@pileofstuff.org \
--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).