<?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>Tech Debug &#187; git</title>
	<atom:link href="http://techdebug.com/blog/category/git/feed/" rel="self" type="application/rss+xml" />
	<link>http://techdebug.com</link>
	<description>Why talk when you can fly</description>
	<lastBuildDate>Thu, 26 Aug 2010 07:30:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Clone a part of an SVN repository in git</title>
		<link>http://techdebug.com/blog/2010/01/06/clone-a-part-of-an-svn-repository-in-git/</link>
		<comments>http://techdebug.com/blog/2010/01/06/clone-a-part-of-an-svn-repository-in-git/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 15:03:18 +0000</pubDate>
		<dc:creator>lantrix</dc:creator>
				<category><![CDATA[git]]></category>
		<category><![CDATA[URL]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[higher]]></category>
		<category><![CDATA[level]]></category>
		<category><![CDATA[partial]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://techdebug.com/?p=608</guid>
		<description><![CDATA[I was trying to clone my wordpress plugin from the wordpress svn repo using git-svn. I had no luck for about the past 8 weeks, with this problem: Initialized empty Git repository in /Users/lantrix/tweet/.git/ Using higher level of URL: http://plugins.svn.wordpress.org/tweet =&#62; http://plugins.svn.wordpress.org And it would proceed to hit up the entire wordpress repo. After reading [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to clone my wordpress plugin from the wordpress svn <a href="http://plugins.svn.wordpress.org/tweet/">repo</a> using <a href="http://git-scm.com">git-svn</a>. I had no luck for about the past 8 weeks, with this problem:</p>
<p><pre><pre>
Initialized empty Git repository in /Users/lantrix/tweet/.git/
Using higher level of URL: http://plugins.svn.wordpress.org/tweet =&gt; http://plugins.svn.wordpress.org
</pre></pre></p>
<p>And it would proceed to hit up the entire wordpress repo.<br />
After reading a possible solution on <a href="http://yapr.wordpress.com/2007/12/31/partial-git-clone-of-svn-subdirectory/">Charlie&#8217;s Old blog</a>, I stubmled across a <a href="http://stackoverflow.com/questions/1453416/git-svn-clone-checkouts-wrong-repo">newer way</a> to do this.</p>
<p>As of v1.6.4 of git, you can now use a <i>&#8211;no-minimize-url</i> when doing a git-svn clone. This makes git clone only the part of the repo you want; and the added bonus is you can get all your tags and branches.</p>
<p>Here is how I did it:<br />
<pre><code>
git svn clone --prefix=svn/ --stdlayout \
--authors-file=authors.txt \
--no-minimize-url http://plugins.svn.wordpress.org/tweet/
</code></pre></p>
<p>It still took a while to parse all the SVN history, and now of course this stands out in the <a href="http://www.kernel.org/pub/software/scm/git/docs/git-svn.html">git-svn doco</a> <img src='http://techdebug.com/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> </p>
<p>The authors.txt file just mapped my svn users to git user/email pair, e.g.:<br />
<pre><pre>
lantrix = Lantrix &lt;lantrix @someemail.com&gt;
plugin-master = none &lt;none @none.com&gt;
(no author) = none &lt;/none&gt;&lt;none @none.com&gt;
&lt;/none&gt;&lt;/lantrix&gt;</pre></pre></p>
<p>You will probably want to have a look at these set of scripts. Have a read of <a href="ttp://blog.woobling.org/2009/06/git-svn-abandon.html">NothingMuch&#8217;s perl blo</a>g for extra steps and details on extra svn conversion scripts.</p>
]]></content:encoded>
			<wfw:commentRss>http://techdebug.com/blog/2010/01/06/clone-a-part-of-an-svn-repository-in-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git branch name in your bash prompt</title>
		<link>http://techdebug.com/blog/2009/11/28/git-branch-name-in-your-bash-prompt/</link>
		<comments>http://techdebug.com/blog/2009/11/28/git-branch-name-in-your-bash-prompt/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 03:51:35 +0000</pubDate>
		<dc:creator>lantrix</dc:creator>
				<category><![CDATA[git]]></category>
		<category><![CDATA[SCM]]></category>
		<category><![CDATA[gist]]></category>

		<guid isPermaLink="false">http://techdebug.com/blog/2009/11/28/git-branch-name-in-your-bash-prompt/</guid>
		<description><![CDATA[Here is a quick way to show the current git branch when you are in a repository directory. Place this in your .bashrc or .bash_profile: I&#8217;ve also customised the PS1 to show user/host/path. You should probably setup git bash completion as well. This can be done by sourcing the bash completion script that is available [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a quick way to show the current <a href="http://git-scm.com/">git</a> branch when you are in a repository directory. Place this in your .bashrc or .bash_profile:</p>
<script src="http://gist.github.com/243856.js"></script>
<p>I&#8217;ve also customised the PS1 to show user/host/path.</p>
<p>You should probably setup git bash completion as well. This can be done by sourcing the <a href="http://git.kernel.org/?p=git/git.git;a=blob;f=contrib/completion/git-completion.bash;hb=HEAD">bash completion script</a> that is available in the git source code as shown (change path to where you place script):</p>
<script src="http://gist.github.com/244374.js"></script>
<p>Have fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://techdebug.com/blog/2009/11/28/git-branch-name-in-your-bash-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
