<?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>insomnia bytes &#187; Git</title>
	<atom:link href="http://bytes.inso.cc/wp/category/git/feed/" rel="self" type="application/rss+xml" />
	<link>http://bytes.inso.cc/wp</link>
	<description>Imagination is a nightbird's dream</description>
	<lastBuildDate>Sat, 07 Nov 2009 17:13:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Git presentation at Purple Scout</title>
		<link>http://bytes.inso.cc/wp/2009/04/22/git-presentation-at-purple-scout/</link>
		<comments>http://bytes.inso.cc/wp/2009/04/22/git-presentation-at-purple-scout/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 10:36:44 +0000</pubDate>
		<dc:creator>theefer</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[presentation]]></category>
		<category><![CDATA[slides]]></category>
		<category><![CDATA[sweden]]></category>

		<guid isPermaLink="false">http://bytes.inso.cc/wp/?p=896</guid>
		<description><![CDATA[On April 17, I was invited to do a presentation on Git for Purple Scout in Malmö, Sweden. Around 40 people showed up (including many XMMS2 folks) and endured 2-hours on what Git is, why it&#8217;s so awesome and all the fancy stuff you can do with it. I think people liked it and although [...]]]></description>
			<content:encoded><![CDATA[<p>On April 17, I was invited to do a presentation on <a href="http://git-scm.com/">Git</a> for <a href="http://www.purplescout.se/">Purple Scout</a> in Malmö, Sweden. Around 40 people showed up (including many XMMS2 folks) and endured 2-hours on what Git is, why it&#8217;s so awesome and all the fancy stuff you can do with it. I think people liked it and although most seemed to be using Git already, they were nice enough to say that they&#8217;d learned something anyway.</p>
<p>I&#8217;d given talks about Git <a href="http://bytes.inso.cc/wp/2008/04/10/get-the-git-slides/">previously</a> in Switzerland, but for this occasion I reworked and pimped up my slides quite a bit to cover more material and have more cute diagrams. As before, you can get the <a href='http://bytes.inso.cc/wp/wp-content/uploads/2009/04/git-presentation-20090417-purplescout.pdf'>slides for the Git presentation (PDF)</a>, or even fiddle with the <a href='http://bytes.inso.cc/wp/wp-content/uploads/2009/04/git-presentation-20090417-purplescout.key'>source file</a>, under the terms of the <a href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-Share Alike 2.5 License</a>. Reuse, modify or poke fun at at will!</p>
<p><a href="http://bytes.inso.cc/wp/wp-content/uploads/2009/04/git-repository-diagram.png"><img src="http://bytes.inso.cc/wp/wp-content/uploads/2009/04/git-repository-diagram-500x374.png" alt="Git repository diagram" title="Git repository diagram" width="500" height="374" class="alignnone size-medium wp-image-900" /></a></p>
<p>Sorry it&#8217;s still in proprietary Keynote format, because that&#8217;s the only vaguely acceptable software I found to make lots of diagram easily&#8230; Any Free alternative would be welcome, if someone knows of one.</p>
<p>It was great fun preparing and giving this course, and being back in Sweden and seeing friends again, so <em>tusen tack till Purple Scout</em> for making this happen!</p>
]]></content:encoded>
			<wfw:commentRss>http://bytes.inso.cc/wp/2009/04/22/git-presentation-at-purple-scout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git Tips #1: Get there now</title>
		<link>http://bytes.inso.cc/wp/2008/12/04/git-tips-1-get-there-now/</link>
		<comments>http://bytes.inso.cc/wp/2008/12/04/git-tips-1-get-there-now/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 16:45:25 +0000</pubDate>
		<dc:creator>theefer</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://bytes.inso.cc/wp/?p=801</guid>
		<description><![CDATA[Sometimes you&#8217;ve played around in the history of a branch, edited some stuff in older commits, perhaps reordered them. You&#8217;ve reset&#8217;d back a few commits, and now you want to get to the final state you were at initially (or whatever state you want to get to).
Say you&#8217;ve kept a branch called &#8216;the-end-state&#8216; with the [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you&#8217;ve played around in the history of a branch, edited some stuff in older commits, perhaps reordered them. You&#8217;ve reset&#8217;d back a few commits, and now you want to get to the final state you were at initially (or whatever state you want to get to).</p>
<p>Say you&#8217;ve kept a branch called &#8216;<code>the-end-state</code>&#8216; with the working end state you wanted to get back to before you started messing around with the history. You don&#8217;t want to <code>merge</code> (merging two alternative histories of the same development wouldn&#8217;t make any sense), you don&#8217;t want to <code>rebase</code> (it&#8217;s about building a new history, not forwarding it on top of the old one). You just want a new commit to bring you to &#8216;<code>the-end-state</code>&#8216;.</p>
<p>And you want to <strong>get there <em>now</em></strong>!</p>
<p>The intuitive way to do this is the following:</p>
<p><code class="snippet commands">$ git diff ..the-end-state &gt; finish.patch<br />
$ patch -p1 &lt; finish.patch<br />
$ git commit -a -s</code></p>
<p>But why three steps when you can do with just two, using <code>git read-tree</code> to import the tree from <code>the-end-state</code> branch into your index (<code>-m</code> to check for unmerged entries) and populate your work tree (<code>-u</code>):</p>
<p><code class="snippet commands">$ git read-tree -m -u the-end-state<br />
$ git commit -a -s</code></p>
<p>Thanks Junio for the <a href="http://article.gmane.org/gmane.comp.version-control.git/102315">tip on gitml</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://bytes.inso.cc/wp/2008/12/04/git-tips-1-get-there-now/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get the Git slides</title>
		<link>http://bytes.inso.cc/wp/2008/04/10/get-the-git-slides/</link>
		<comments>http://bytes.inso.cc/wp/2008/04/10/get-the-git-slides/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 18:07:51 +0000</pubDate>
		<dc:creator>theefer</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[barcamp]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[gull]]></category>
		<category><![CDATA[talk]]></category>

		<guid isPermaLink="false">http://inso.cc/wp/?p=496</guid>
		<description><![CDATA[Git is the coolest content versioning system since the birth of bits, and I gave two talks/courses recently: the first at the BarCamp in Lausanne (edition 2), and the second for the local LUG, AKA the GULL.
I&#8217;ve uploaded the PDF of the slides in English and in French, and in case anyone is interested in [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://git.or.cz/">Git</a> is the coolest content versioning system since the birth of bits, and I gave two talks/courses recently: the first at the <a href="http://barcamp.ch/BarCampLausanne2">BarCamp in Lausanne (edition 2)</a>, and the second for the local <acronym title="Linux User Group">LUG</acronym>, AKA the <a href="http://www.linux-gull.ch/">GULL</a>.</p>
<p>I&#8217;ve uploaded the PDF of the slides <a href="http://inso.cc/wp/wp-content/uploads/2008/04/git-presentation-barcamp.pdf">in English</a> and <a href="http://inso.cc/wp/wp-content/uploads/2008/04/git-presentation-gull-fr.pdf">in French</a>, and in case anyone is interested in reusing them, the sources are available (warning: evil Keynote format; I was in a rush, won&#8217;t happen again) under the <a href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-Share Alike 2.5 License</a>: sources <a href="http://inso.cc/wp/wp-content/uploads/2008/04/git-presentation-barcamp.zip">in English</a>, and <a href="http://inso.cc/wp/wp-content/uploads/2008/04/git-presentation-gull-fr.zip">in French</a>.</p>
<p><img class="illu2 wp-image-502" title="Git logo" src="http://inso.cc/wp/wp-content/uploads/2008/04/git-logo.png" alt="Git logo" />And to follow up to the topic of Git, go and read <a href="http://tomayko.com/writings/the-thing-about-git">this interesting article about using the Index to do partial commits</a> and <a href="http://blog.madism.org/index.php/2007/09/09/138-git-awsome-ness-git-rebase-interactive">this short note about using git-rebase &#8211;interactive to rewrite history</a> (not History, yet).</p>
<p>PS: I&#8217;m quite sure I&#8217;m scaring the shit out of my non-tech geek readers, sorry. Stay around though, I will try to split this blog in two (life stuff, bytes stuff) in the future, and I have a few entries about Japan cooking up&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://bytes.inso.cc/wp/2008/04/10/get-the-git-slides/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
