<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Git global ignores</title>
	<atom:link href="http://programblings.com/2008/10/22/git-global-ignores/feed/" rel="self" type="application/rss+xml" />
	<link>http://programblings.com/2008/10/22/git-global-ignores/</link>
	<description>Rambling about programming and life as a programmer - by Mathieu Martin</description>
	<lastBuildDate>Thu, 26 Feb 2009 13:28:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Alok</title>
		<link>http://programblings.com/2008/10/22/git-global-ignores/comment-page-1/#comment-866</link>
		<dc:creator>Alok</dc:creator>
		<pubDate>Sun, 09 Nov 2008 22:45:25 +0000</pubDate>
		<guid isPermaLink="false">http://programblings.com/?p=96#comment-866</guid>
		<description>Good tip.</description>
		<content:encoded><![CDATA[<p>Good tip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathieu Martin</title>
		<link>http://programblings.com/2008/10/22/git-global-ignores/comment-page-1/#comment-823</link>
		<dc:creator>Mathieu Martin</dc:creator>
		<pubDate>Thu, 23 Oct 2008 19:42:04 +0000</pubDate>
		<guid isPermaLink="false">http://programblings.com/?p=96#comment-823</guid>
		<description>@Brian

I edited your comment to properly show the double dashes.

I hate Wordpress for that ;-)</description>
		<content:encoded><![CDATA[<p>@Brian</p>
<p>I edited your comment to properly show the double dashes.</p>
<p>I hate Wordpress for that ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathieu Martin</title>
		<link>http://programblings.com/2008/10/22/git-global-ignores/comment-page-1/#comment-822</link>
		<dc:creator>Mathieu Martin</dc:creator>
		<pubDate>Thu, 23 Oct 2008 19:39:48 +0000</pubDate>
		<guid isPermaLink="false">http://programblings.com/?p=96#comment-822</guid>
		<description>@Pierre Olivier

I have the habit of working in a directory per project (be it an article or a mini code project). So I create one repo per project. 

Note that I don&#039;t necessarily push them to a remote server. I&#039;m only talking about using git as a powerful local undo button :-)

@Brian

Wow, cool trick :-) My bash skills are not high enough for me to pretend I understand all of that little script. But I&#039;ll definitely give it a try. Thanks!</description>
		<content:encoded><![CDATA[<p>@Pierre Olivier</p>
<p>I have the habit of working in a directory per project (be it an article or a mini code project). So I create one repo per project. </p>
<p>Note that I don&#8217;t necessarily push them to a remote server. I&#8217;m only talking about using git as a powerful local undo button :-)</p>
<p>@Brian</p>
<p>Wow, cool trick :-) My bash skills are not high enough for me to pretend I understand all of that little script. But I&#8217;ll definitely give it a try. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Ericson</title>
		<link>http://programblings.com/2008/10/22/git-global-ignores/comment-page-1/#comment-821</link>
		<dc:creator>Brian Ericson</dc:creator>
		<pubDate>Thu, 23 Oct 2008 17:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://programblings.com/?p=96#comment-821</guid>
		<description>Neat!  (I should really just read &quot;git config --help&quot; top-to-bottom.)

If you want to add something to your local repo&#039;s .gitignore, you can create an alias which will make it easier:

git config −−global alias.ignore &#039;!f () { local ignore_file=$( git rev-parse −−show-cdup ).gitignore arg; for arg in $*; do echo $arg &gt;&gt; $ignore_file; done; sort -u -o $ignore_file $ignore_file; }; f&#039;

Git will do tab-completion on the alias (provided you use git&#039;s bash-completion, &quot;git ig&quot; will complete to &quot;git ignore&quot; for you), each argument will be appended to the .gitignore file (without you having to figure out the correct parent path), and the file will then be sorted and duplicates tossed.</description>
		<content:encoded><![CDATA[<p>Neat!  (I should really just read &#8220;git config &#8211;help&#8221; top-to-bottom.)</p>
<p>If you want to add something to your local repo&#8217;s .gitignore, you can create an alias which will make it easier:</p>
<p>git config −−global alias.ignore &#8216;!f () { local ignore_file=$( git rev-parse −−show-cdup ).gitignore arg; for arg in $*; do echo $arg &gt;&gt; $ignore_file; done; sort -u -o $ignore_file $ignore_file; }; f&#8217;</p>
<p>Git will do tab-completion on the alias (provided you use git&#8217;s bash-completion, &#8220;git ig&#8221; will complete to &#8220;git ignore&#8221; for you), each argument will be appended to the .gitignore file (without you having to figure out the correct parent path), and the file will then be sorted and duplicates tossed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pierre Olivier Martel</title>
		<link>http://programblings.com/2008/10/22/git-global-ignores/comment-page-1/#comment-819</link>
		<dc:creator>Pierre Olivier Martel</dc:creator>
		<pubDate>Thu, 23 Oct 2008 15:45:26 +0000</pubDate>
		<guid isPermaLink="false">http://programblings.com/?p=96#comment-819</guid>
		<description>Very useful tip! When you say you also use git for your personal documents like blog drafts, how do you setup git? Do you have one git repository at the root of your Documents folder to just keep track of everything?</description>
		<content:encoded><![CDATA[<p>Very useful tip! When you say you also use git for your personal documents like blog drafts, how do you setup git? Do you have one git repository at the root of your Documents folder to just keep track of everything?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
