git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Using git to perform merges between SVN branches

From
davetron5000 <davetron5000@gmail.com>
Date
May 21, 2008, 15:50 UTC
Message-ID
<a5c338c9-7820-41bd-a3a3-36ba5aad4379@l64g2000hse.googlegroups.com>

Working out of an SVN/subversion repository. Initially cloned it so I could work with git via git-svn. I was given a branch in svn to work on. Created local branches connected to the main trunk and my branch via:

git-checkout -b local-trunk trunk git branch local-foo FOO

where svn_root/branches/FOO is where I'm to commit changes
commits work fine, etc.

What I'd like to do, for simplicity, and as a demonstration of git's superior merging, is to do the merge of my code to the main trunk using git. My main concern is not getting into a situation where I cannot commit to svn (since it doesn't track merges)

Would something like this work:

git checkout local-trunk git-svn rebase git checkout -b merge-foo local-trunk git merge local-foo # Resolve conflicts, etc. local-foo now has what should go onto SVN's trunk git checkout local-trunk git merge merge-foo # this should work without any conflicts, since I resolved them on merge-foo git-svn dcommit # Now I've merged my changes to the main trunk

Thanks,
Dave
Next: Björn Steinbrink
Message 1 of 2 in “Using git to perform merges between SVN branches”
  1. davetron5000May 21, 2008
  2. Björn SteinbrinkMay 21, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.