<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Solutions Log &#187; git-svn</title> <atom:link href="http://solutions.unixsherpa.com/tag/git-svn/feed/" rel="self" type="application/rss+xml" /><link>http://solutions.unixsherpa.com</link> <description>by Dan Reiland</description> <lastBuildDate>Tue, 05 Apr 2011 16:42:14 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Git Subtree Merge and git-svn</title><link>http://solutions.unixsherpa.com/2010/03/02/git-subtree-merge-and-git-svn/</link> <comments>http://solutions.unixsherpa.com/2010/03/02/git-subtree-merge-and-git-svn/#comments</comments> <pubDate>Tue, 02 Mar 2010 17:02:37 +0000</pubDate> <dc:creator>Dan</dc:creator> <category><![CDATA[Git]]></category> <category><![CDATA[SCM]]></category> <category><![CDATA[Subversion]]></category> <category><![CDATA[git-svn]]></category> <category><![CDATA[howto]]></category> <category><![CDATA[recipe]]></category><guid
isPermaLink="false">http://solutions.unixsherpa.com/?p=262</guid> <description><![CDATA[Issue: Git submodules do not play nicely with git-svn; git subtree merging is a more appropriate strategy for my specific use case. Resolution: This is my recipe (borrowed heavily from the formal git documentation). git checkout -b TRY-MERGE master git remote add -f Bproject /path/to/B git merge -s ours --no-commit Bproject/master git read-tree --prefix=dir-B/ -u [...]]]></description> <content:encoded><![CDATA[<p><strong>Issue:</strong> Git submodules do not play nicely with git-svn; git subtree merging is a more appropriate strategy for my specific use case.</p><p><strong>Resolution:</strong> This is my recipe (borrowed heavily from the formal git documentation).</p><div
class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span
style="color: #c20cb9; font-weight: bold;">git checkout</span> <span
style="color: #660033;">-b</span> TRY-MERGE master<br
/> <span
style="color: #c20cb9; font-weight: bold;">git remote</span> add <span
style="color: #660033;">-f</span> Bproject <span
style="color: #000000; font-weight: bold;">/</span>path<span
style="color: #000000; font-weight: bold;">/</span>to<span
style="color: #000000; font-weight: bold;">/</span>B<br
/> <span
style="color: #c20cb9; font-weight: bold;">git merge</span> <span
style="color: #660033;">-s</span> ours <span
style="color: #660033;">--no-commit</span> Bproject<span
style="color: #000000; font-weight: bold;">/</span>master<br
/> <span
style="color: #c20cb9; font-weight: bold;">git read-tree</span> <span
style="color: #660033;">--prefix</span>=dir-B<span
style="color: #000000; font-weight: bold;">/</span> <span
style="color: #660033;">-u</span> Bproject<span
style="color: #000000; font-weight: bold;">/</span>master<br
/> <span
style="color: #c20cb9; font-weight: bold;">git commit</span> <span
style="color: #660033;">-m</span> <span
style="color: #ff0000;">&quot;Task - JIRA-001 - Merge B project as our subdirectory&quot;</span><br
/> <span
style="color: #c20cb9; font-weight: bold;">git checkout</span> master<br
/> <span
style="color: #c20cb9; font-weight: bold;">git merge</span> TRY-MERGE master <span
style="color: #660033;">-m</span> <span
style="color: #ff0000;">&quot;Task - JIRA-001 - Merging subtrees into project.&quot;</span><br
/> <span
style="color: #c20cb9; font-weight: bold;">git-svn</span> dcommit</div></div><p>You may update your local copy from the remote at any time with:</p><div
class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span
style="color: #c20cb9; font-weight: bold;">git pull</span> <span
style="color: #660033;">-s</span> subtree Bproject master</div></div><p>Reference: <a
href="http://kernel.org/pub/software/scm/git/docs/v1.7.0/howto/using-merge-subtree.html">http://kernel.org/pub/software/scm/git/docs/v1.7.0/howto/using-merge-subtree.html</a></p> ]]></content:encoded> <wfw:commentRss>http://solutions.unixsherpa.com/2010/03/02/git-subtree-merge-and-git-svn/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached
Database Caching 1/12 queries in 0.002 seconds using memcached
Object Caching 418/433 objects using memcached
Content Delivery Network via Amazon Web Services: S3: unixsherpa-solutions.s3.amazonaws.com

Served from: solutions.unixsherpa.com @ 2012-02-06 14:58:42 -->
