<?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/category/git/feed/" rel="self" type="application/rss+xml" />
	<link>http://bytes.inso.cc</link>
	<description></description>
	<lastBuildDate>Sat, 13 Aug 2011 01:33:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Git presentation at Purple Scout</title>
		<link>http://bytes.inso.cc/2009/04/22/git-presentation-at-purple-scout/</link>
		<comments>http://bytes.inso.cc/2009/04/22/git-presentation-at-purple-scout/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 09:36:20 +0000</pubDate>
		<dc:creator>seb</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[presentation]]></category>
		<category><![CDATA[purple scout]]></category>
		<category><![CDATA[slides]]></category>
		<category><![CDATA[sweden]]></category>

		<guid isPermaLink="false">http://bytes.inso.cc/?p=35</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-content/uploads/2011/06/git-presentation-20090417-purplescout.pdf'>slides for the Git presentation (PDF)</a>, or even fiddle with the <a href='http://bytes.inso.cc/wp-content/uploads/2011/06/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/2009/04/22/git-presentation-at-purple-scout/git-repository-diagram/" rel="attachment wp-att-98"><img src="http://bytes.inso.cc/wp-content/uploads/2009/04/git-repository-diagram-525x393.png" alt="" title="git-repository-diagram" width="525" height="393" class="alignnone size-medium wp-image-98" /></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/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/2008/12/04/git-tips-1-get-there-now/</link>
		<comments>http://bytes.inso.cc/2008/12/04/git-tips-1-get-there-now/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 18:45:16 +0000</pubDate>
		<dc:creator>seb</dc:creator>
				<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://bytes.inso.cc/?p=71</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 &#8220;the-end-state&#8221; with [...]]]></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 &#8220;<var>the-end-state</var>&#8221; 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 &#8220;<var>the-end-state</var>&#8220;.</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>
<pre name="code" class="shell">
$ git diff ..the-end-state &gt; finish.patch
$ patch -p1 &lt; finish.patch
$ git commit -a -s
</pre>
<p>But why three steps when you can do with just two, using <kbd>git read-tree</kbd> to import the tree from &#8220;<var>the-end-state</var>&#8221; branch into your index (<kbd>-m</kbd> to check for unmerged entries) and populate your work tree (<kbd>-u</kbd>):</p>
<pre name="code" class="shell">
$ git read-tree -m -u the-end-state
$ git commit -a -s
</pre>
<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/2008/12/04/git-tips-1-get-there-now/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

