From: Yang Zhang <yanghatespam@gmail.com>
To: git@vger.kernel.org
Subject: How to rebase for git svn?
Date: Wed, 05 Nov 2008 14:09:00 -0500 [thread overview]
Message-ID: <4911EF4C.8030703@gmail.com> (raw)
Hi, I made a git svn repository from an svn repository. Then I cloned
the git repository, committed some changes to the clone, and pulled back
to the original repository. However, now the original repository gives
me conflicts whenever I run git svn rebase. I believe this is because
git pull treats the other repository's commits as a branch and merges
them back instead of rebasing them and maintaining the type of linear
history that is good for playing with svn. Any hints as to how to fix
this? I think the solution is to undo the merge that resulted from the
pull, but I don't know how to do this.
I wrote a simple script reproducing exactly what's going on (along with
a transcript of its output). I tried to make it as simple as possible,
but it can probably be simplified even more to reproduce the problem:
http://assorted.svn.sourceforge.net/viewvc/assorted/sandbox/trunk/src/git/gitsvn.bash?revision=1057&view=markup
Thanks in advance for any help!
--
Yang Zhang
http://www.mit.edu/~y_z/
next reply other threads:[~2008-11-05 19:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-05 19:09 Yang Zhang [this message]
2008-11-06 9:55 ` How to rebase for git svn? Eric Wong
2008-11-06 10:15 ` Sverre Rabbelier
2008-11-06 10:24 ` Björn Steinbrink
2008-11-06 20:05 ` Yang Zhang
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=4911EF4C.8030703@gmail.com \
--to=yanghatespam@gmail.com \
--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