<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for bartman</title><link>http://disqus.com/people/98271cdefd737de159af678f91d7f47b/</link><description></description><language>en</language><lastBuildDate>Wed, 21 Oct 2009 10:39:57 -0000</lastBuildDate><item><title>Re: http://adam.blog.heroku.com/past/2008/5/15/more_git_techniques/</title><link>http://adamheroku.disqus.com/thread_58/#comment-2249904</link><description>Restore a file to repository version&lt;br&gt;&lt;br&gt;  git: git checkout -f file&lt;br&gt;&lt;br&gt;Set some changes aside to work on something else:&lt;br&gt;  &lt;br&gt;  svn: svn diff &amp;gt; /tmp/path ; svn revert -R .</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bartman</dc:creator><pubDate>Tue, 09 Sep 2008 15:25:03 -0000</pubDate></item><item><title>Re: Frequent code checkpointing with git</title><link>http://phildawesstuff.disqus.com/frequent_code_checkpointing_with_git/#comment-2753627</link><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).&lt;br&gt;&lt;br&gt;# *hack*&lt;br&gt;git commit -a -m"one"&lt;br&gt;# *hack*&lt;br&gt;git commit -a -m"two"&lt;br&gt;git rebase -i HEAD~2&lt;br&gt;# bring us an editor, select the "one" and "two" as squash, save, exit.&lt;br&gt;git log&lt;br&gt;&lt;br&gt;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.&lt;br&gt;&lt;br&gt;# *hack*&lt;br&gt;git commit -a -m"I am working on blah"&lt;br&gt;# *hack*&lt;br&gt;git commit --amend&lt;br&gt;...&lt;br&gt;&lt;br&gt;-Bart</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bartman</dc:creator><pubDate>Mon, 22 Oct 2007 09:18:54 -0000</pubDate></item><item><title>Re: My Git Workflow</title><link>http://osteele.disqus.com/my_git_workflow/#comment-4881280</link><description>I love the diagrams!&lt;br&gt;&lt;br&gt;One unmentioned commit management feature is `git commit --amend` which would allow you to update the last commit with new edits.  If you're familiar with `git rebase -i` squashing, then this is like squashing your index into the last commit.  You could also amend with the working files by using `git commit --amend -a` or providing specific files on the command line.&lt;br&gt;&lt;br&gt;I think both `git stash` and `git commit --amend` have their uses, and I use them both in my workflow.&lt;br&gt;&lt;br&gt;Finally, I would also like to mention that `git add -i` has a hidden feature of being able to stage individual lines of change, not complete files.  If there is some debug code in your file, you can commit everything else.  You can also use `git gui` to stage individual "hunks" (blocks of a diff) for commit.&lt;br&gt;&lt;br&gt;-Bart</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bartman</dc:creator><pubDate>Sat, 10 May 2008 07:24:07 -0000</pubDate></item><item><title>Re: When Can We Buy Android Apps in Canada?</title><link>http://androidincanada.disqus.com/when_can_we_buy_android_apps_in_canada/#comment-16283533</link><description>I rooted my Rogers Dream a bit differently.  I used the flashrec program, which installs the CM 1.4 recovery image even on the Rogers Dream.  My writeup is here...&lt;br&gt;&lt;br&gt;    &lt;a href="http://www.jukie.net/%7Ebart/blog/rooting-rogers-dream" rel="nofollow"&gt;http://www.jukie.net/~bart/blog/rooting-rogers-...&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bartman</dc:creator><pubDate>Wed, 09 Sep 2009 21:35:45 -0000</pubDate></item><item><title>Re: git ready &amp;raquo; bend logs to your will</title><link>http://git-ready.disqus.com/git_ready_raquo_bend_logs_to_your_will_39/#comment-20702584</link><description>Here is my favorite way to look at git log...&lt;br&gt;&lt;br&gt;&lt;a href="http://www.jukie.net/%7Ebart/blog/pimping-out-git-log" rel="nofollow"&gt;http://www.jukie.net/~bart/blog/pimping-out-git...&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bartman</dc:creator><pubDate>Wed, 21 Oct 2009 10:39:57 -0000</pubDate></item></channel></rss>