<?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>Kickass Labs &#187; GIT</title>
	<atom:link href="http://www.kickasslabs.com/tag/git/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kickasslabs.com</link>
	<description>We &#9829; code.</description>
	<lastBuildDate>Sun, 04 Jul 2010 03:00: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>Quick Hits:  When your .gitignore file gets&#8230;ignored</title>
		<link>http://www.kickasslabs.com/2010/02/06/quick-hits-when-your-gitignore-file-gets-ignored/</link>
		<comments>http://www.kickasslabs.com/2010/02/06/quick-hits-when-your-gitignore-file-gets-ignored/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 19:55:48 +0000</pubDate>
		<dc:creator>abel</dc:creator>
				<category><![CDATA[Version Control]]></category>
		<category><![CDATA[GIT]]></category>
		<category><![CDATA[noob]]></category>

		<guid isPermaLink="false">http://www.kickasslabs.com/?p=427</guid>
		<description><![CDATA[I made a mistake while creating a GIT repos that I&#8217;m hoping I can save you from making.  I made my first commit on a project and I realized that a bunch of files were getting in that shouldn&#8217;t be.  I created a .gitignore file, but the issue kept happening on subsequent commits.  As I [...]]]></description>
			<content:encoded><![CDATA[<p>I made a mistake while creating a GIT repos that I&#8217;m hoping I can save you from making.  I made my first commit on a project and I realized that a bunch of files were getting in that shouldn&#8217;t be.  I created a .gitignore file, but the issue kept happening on subsequent commits.  As I learned later, you SHOULD create your .gitignore file first.  However, if you forgot, this is how you fix it:</p>
<ol>
<li>Keep your .gitignore file.</li>
<li>Clear your GIT cache.  Don&#8217;t worry, this won&#8217;t delete any of your  local files, just what GIT is tracking.<br />
<code>git rm -r --cached .</code></li>
<li>Add everything in your project.  Your .gitignore file will exclude what you want to ignore now and start tracking the good stuff.<br />
<code>git add .</code></li>
<li>Commit your changes.<br />
<code>git commit -m "Now my .gitignore file works correctly!"</code></li>
</ol>
<p>Happy codding!</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.kickasslabs.com%2F2010%2F02%2F06%2Fquick-hits-when-your-gitignore-file-gets-ignored%2F&amp;linkname=Quick%20Hits%3A%20%20When%20your%20.gitignore%20file%20gets%26%238230%3Bignored"><img src="http://www.kickasslabs.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kickasslabs.com/2010/02/06/quick-hits-when-your-gitignore-file-gets-ignored/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
