<?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>Carl Mercier&#039;s blog &#187; script</title>
	<atom:link href="http://blog.carlmercier.com/tag/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.carlmercier.com</link>
	<description>me = entrepreneur + hacker;</description>
	<lastBuildDate>Thu, 02 Feb 2012 18:38:06 +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>No nonsense GIT, part 1: git-remote-branch</title>
		<link>http://blog.carlmercier.com/2008/01/25/no-nonsense-git-part-1-git-remote-branch/</link>
		<comments>http://blog.carlmercier.com/2008/01/25/no-nonsense-git-part-1-git-remote-branch/#comments</comments>
		<pubDate>Fri, 25 Jan 2008 22:37:57 +0000</pubDate>
		<dc:creator>Carl Mercier</dc:creator>
				<category><![CDATA[Software development]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[git-remote-branch]]></category>
		<category><![CDATA[no nonsense git]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://blog.carlmercier.com/2008/01/25/no-nonsense-git-part-1-git-remote-branch/</guid>
		<description><![CDATA[We&#8217;re just starting to use GIT at Defensio and although there are plenty of great resources like the Peepcode video and Jean-François Couture&#8217;s blog, the learning curve (from SVN) can be a little rough. The problem is that GIT is very powerful, and probably too powerful for a small shop like ours. This unfortunately leads [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re just starting to use <a href="http://git.or.cz/">GIT</a> at <a href="http://defensio.com">Defensio</a> and although there are plenty of great resources like the <a href="http://peepcode.com/products/git">Peepcode video</a> and <a href="http://jfcouture.com/category/git/">Jean-François Couture&#8217;s blog</a>, the learning curve (from SVN) can be a little rough.  The problem is that GIT is very powerful, and probably too powerful for a small shop like ours.  This unfortunately leads to some complexity that we&#8217;d rather not have to deal with, especially since we don&#8217;t need all the fancy features.</p>
<p>In an effort to simplify our workflow, we started to build a few scripts that automate complex tasks.  My plan is to post them on my blog for your own benefit.  If they&#8217;re useful for us, they should be useful for other people too.</p>
<p>The first script I&#8217;m posting is git-remote-branch.  It is meant to simplify the process of creating and deleting remote and local tracking branches.  Instead of having to execute multiple commands, easy to remember one-liners are now enough.  (hey!  we&#8217;re lazy!)</p>
<p>Check this out:</p>
<p>[source:php]git-remote-branch create experimental[/source]</p>
<p>This command creates an experimental branch on a remote server (&#8216;origin&#8217; by default) from the one you&#8217;re currently sitting in, then a local tracking branch.  When that&#8217;s done, it checks out to the newly created local branch.  You can then pull and push as you wish.</p>
<p>[source:php]git-remote-branch create experimental origin2[/source]</p>
<p>This command does the same as the previous one, but creates experimental on &#8216;origin2&#8242; instead of &#8216;origin&#8217;.</p>
<p>When you&#8217;re done dealing with the remote/local branch combo you created, you can delete both in one go:</p>
<p>[source:php]git-remote-branch delete experimental[/source]</p>
<p>The script will delete the remote branch, then check out &#8220;master&#8221; if you&#8217;re still sitting in &#8220;experimental&#8221;.  The local &#8220;experimental&#8221; branch is then deleted.</p>
<p><a href="http://blog.carlmercier.com/wp-content/uploads/git-remote-branch.zip">git-remote-branch can be downloaded here</a>.  Make sure to chmod +x it before executing it.   For the record, it&#8217;s written in Ruby.  Let me know if it&#8217;s useful for you!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.carlmercier.com/2008/01/25/no-nonsense-git-part-1-git-remote-branch/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

