<?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>Space Babies &#187; git</title>
	<atom:link href="http://www.spacebabies.nl/category/git/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.spacebabies.nl</link>
	<description>extraterrestrialicious web apps</description>
	<lastBuildDate>Wed, 18 Jan 2012 21:52:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Using git to follow Subversion branches</title>
		<link>http://www.spacebabies.nl/2010/10/15/using-git-to-follow-subversion-branches/</link>
		<comments>http://www.spacebabies.nl/2010/10/15/using-git-to-follow-subversion-branches/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 09:39:02 +0000</pubDate>
		<dc:creator>joost</dc:creator>
				<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.spacebabies.nl/?p=849</guid>
		<description><![CDATA[Reluctantly, I&#8217;ve had to migrate some projects back to Subversion. Thankfully git-svn is great. It even follows Subversion branches as local git branches, making merging painless. Here&#8217;s how you create a git branch from an svn branch: git checkout -b &#8230; <a href="http://www.spacebabies.nl/2010/10/15/using-git-to-follow-subversion-branches/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Reluctantly, I&#8217;ve had to migrate some projects back to Subversion. Thankfully git-svn is great. It even follows Subversion branches as local git branches, making merging painless. Here&#8217;s how you create a git branch from an svn branch:</p>
<blockquote><p>git checkout -b <em>localbranchname</em> <em>remotebranchname</em></p></blockquote>
<p>Obviously it assumes you&#8217;ve initialised the git repo correctly and you&#8217;re using all the defaults. Something like this:</p>
<blockquote><p>git svn init -s http://path.to/repo projectname</p>
<p>cd projectname</p>
<p>git svn fetch</p></blockquote>
<p><strong>Update</strong>: merging a Subversion branch with Subversion trunk (aka Git master) is a pain. A real merge is not possible; but a squashed commit works. This is what I prefer since we try to keep Svn branches pretty small and the history is retained in Subversion anyway.</p>
<blockquote><p>git checkout remotes/trunk -b big-merge</p>
<p>git merge &#8211;squash svn-branch</p>
<p>git commit</p></blockquote>
<p>When that&#8217;s done I can safely merge the two Git branches:</p>
<blockquote><p>git checkout master</p>
<p>git merge big-merge</p>
<p>git svn dcommit</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.spacebabies.nl/2010/10/15/using-git-to-follow-subversion-branches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating subversion to git</title>
		<link>http://www.spacebabies.nl/2010/08/20/migrating-subversion-to-git/</link>
		<comments>http://www.spacebabies.nl/2010/08/20/migrating-subversion-to-git/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 13:38:02 +0000</pubDate>
		<dc:creator>joost</dc:creator>
				<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.spacebabies.nl/?p=764</guid>
		<description><![CDATA[I thought I had written this down somewhere, but apparently I didn&#8217;t. Here is the perfect guide for transferring a svn repo to a git repo. And just in case that blog ever goes down, here is the text: The &#8230; <a href="http://www.spacebabies.nl/2010/08/20/migrating-subversion-to-git/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I thought I had written this down somewhere, but apparently I didn&#8217;t. <a href="http://www.jonmaddox.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/">Here</a> is the perfect guide for transferring a svn repo to a git repo.</p>
<p><span id="more-764"></span></p>
<p>And just in case that blog ever goes down, here is the text:</p>
<p>The first thing we need to do is create a users file that maps all your SVN users to your GIT users. Just make a file on your Desktop named ‘users.txt’. Map the users using this format:</p>
<p><code>jmaddox = Jon Maddox &lt;jon@gmail.com&gt;<br />
bigpappa = Brian Biggs &lt;bigpappa@gmail.com&gt;</code></p>
<p>Simple. Now here are the commands you’ll run. I’ll explain them below.</p>
<p><code>mkdir my_blog_tmp<br />
cd my_blog_tmp<br />
git-svn init http://code.yoursite.net/my_blog/trunk/ --no-metadata<br />
git config svn.authorsfile ~/Desktop/users.txt<br />
git-svn fetch</code></p>
<p>The first two are self explanatory, we’re making a new directory for the temporary repository. The second command initializes the directory as a git-svn hybrid thing and points the origin at your SVN repository. The flag, &#8211;no-metadata, tells GIT to leave all the SVN details behind (not the commit log). The fourth command tells GIT to remap all the SVN users to GIT users when it sucks down the source and history. The last command actually does the fetching.</p>
<p>Ok, so now after a few LONG minutes, your source is all there. Do a git log to see that your users have been mapped. Sweet!</p>
<p>Now you just have one last step. You need to clone this repository. Why do we do this? When doing a normal git clone it will take everything we want from the temporary repository, while leaving behind all the SVN cruft that was there to support the git-svn stuff.</p>
<p><code>git clone my_blog_tmp my_blog</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacebabies.nl/2010/08/20/migrating-subversion-to-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I heart git</title>
		<link>http://www.spacebabies.nl/2010/05/31/i-heart-git/</link>
		<comments>http://www.spacebabies.nl/2010/05/31/i-heart-git/#comments</comments>
		<pubDate>Mon, 31 May 2010 10:56:33 +0000</pubDate>
		<dc:creator>joost</dc:creator>
				<category><![CDATA[git]]></category>
		<category><![CDATA[rants]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.spacebabies.nl/?p=712</guid>
		<description><![CDATA[You only appreciate fast version control when you&#8217;re on a slow link. Thank you Linus for creating git, I would have gone insane without it today! PS &#8211; posts about RailsWayCon2010 presentations coming up!]]></description>
			<content:encoded><![CDATA[<p>You only appreciate <strong>fast</strong> version control when you&#8217;re on a slow link. Thank you Linus for creating git, I would have gone insane without it today!</p>
<p><span id="more-712"></span></p>
<p><img title="More..." src="http://www.spacebabies.nl/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" alt="" />PS &#8211; posts about RailsWayCon2010 presentations coming up!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacebabies.nl/2010/05/31/i-heart-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Start a new git remote branch</title>
		<link>http://www.spacebabies.nl/2010/02/08/start-a-new-git-remote-branch/</link>
		<comments>http://www.spacebabies.nl/2010/02/08/start-a-new-git-remote-branch/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 15:43:07 +0000</pubDate>
		<dc:creator>joost</dc:creator>
				<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.spacebabies.nl/?p=566</guid>
		<description><![CDATA[Since I am tired of Googling it, I am going to post the commands required to start a new local branch in git, then push that to the origin, then pull it in to continue working on it. If you &#8230; <a href="http://www.spacebabies.nl/2010/02/08/start-a-new-git-remote-branch/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Since I am <a href="http://djwonk.com/blog/2009/04/18/tracking-remote-git-branches/">tired of Googling</a> it, I am going to post the commands required to start a new local branch in git, then push that to the origin, then pull it in to continue working on it. If you don&#8217;t know what I am talking about, that&#8217;s fine. I do. <img src='http://www.spacebabies.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><span id="more-566"></span></p>
<pre>$ git checkout -b zzz
# Let the hacking commence...
$ git push origin zzz
$ git checkout master # see note 2
$ git branch -f zzz origin/zzz
$ git checkout zzz
# Let the hacking continue...</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.spacebabies.nl/2010/02/08/start-a-new-git-remote-branch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

