<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.1.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Frequent code checkpointing with git</title>
	<link>http://phildawes.net/blog/2007/10/20/frequent-code-checkpointing-with-git/</link>
	<description>Mostly programming with a few bits of other stuff</description>
	<pubDate>Tue, 06 Jan 2009 19:55:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.1</generator>

	<item>
		<title>By: bartman</title>
		<link>http://phildawes.net/blog/2007/10/20/frequent-code-checkpointing-with-git/#comment-49951</link>
		<author>bartman</author>
		<pubDate>Mon, 22 Oct 2007 13:18:54 +0000</pubDate>
		<guid>http://phildawes.net/blog/2007/10/20/frequent-code-checkpointing-with-git/#comment-49951</guid>
					<description>Have you tried using git-rebase -i ?  You need to give it the commit id of the last commit before your string of changes.  You can then tell it to combine all your commits into one (or more).

# *hack*
git commit -a -m"one"
# *hack*
git commit -a -m"two"
git rebase -i HEAD~2
# bring us an editor, select the "one" and "two" as squash, save, exit.
git log

An alternative workflow is to use git commit --amend.  But this does not keep your micro history around.  It just puts any recent changages into the last commit.

# *hack*
git commit -a -m"I am working on blah"
# *hack*
git commit --amend
...

-Bart</description>
		<content:encoded><![CDATA[<p>Have you tried using git-rebase -i ?  You need to give it the commit id of the last commit before your string of changes.  You can then tell it to combine all your commits into one (or more).</p>
<p># *hack*<br />
git commit -a -m&#8221;one&#8221;<br />
# *hack*<br />
git commit -a -m&#8221;two&#8221;<br />
git rebase -i HEAD~2<br />
# bring us an editor, select the &#8220;one&#8221; and &#8220;two&#8221; as squash, save, exit.<br />
git log</p>
<p>An alternative workflow is to use git commit &#8211;amend.  But this does not keep your micro history around.  It just puts any recent changages into the last commit.</p>
<p># *hack*<br />
git commit -a -m&#8221;I am working on blah&#8221;<br />
# *hack*<br />
git commit &#8211;amend<br />
&#8230;</p>
<p>-Bart</p>
]]></content:encoded>
				</item>
</channel>
</rss>
