<?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>Denver Dev Blog &#187; SourceCodeControl</title>
	<atom:link href="http://ambientideas.com/blog/index.php/tag/sourcecodecontrol/feed/" rel="self" type="application/rss+xml" />
	<link>http://ambientideas.com/blog</link>
	<description>Matthew McCullough&#039;s insights on software development as co-founder of Ambient Ideas, LLC</description>
	<lastBuildDate>Wed, 23 Nov 2011 17:42:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>IBM Podcast: Andy Glover interviews Matthew McCullough about Git</title>
		<link>http://ambientideas.com/blog/index.php/2010/08/ibm-podcast-andy-glover-interviews-matthew-mccullough-about-git/</link>
		<comments>http://ambientideas.com/blog/index.php/2010/08/ibm-podcast-andy-glover-interviews-matthew-mccullough-about-git/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 03:37:05 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[SourceCodeControl]]></category>

		<guid isPermaLink="false">http://ambientideas.com/blog/index.php/2010/08/ibm-podcast-andy-glover-interviews-matthew-mccullough-about-git/</guid>
		<description><![CDATA[  Andy Glover  recently interviewed me for his new series of  IBM podcasts .   I was able to  share about 20 minutes  of my  experience with and passion for the Git version control system  with his audience. ]]></description>
			<content:encoded><![CDATA[<p><a href="http://thediscoblog.com/" target="_blank">Andy Glover</a> recently interviewed me for his new series of <a href="http://itunes.apple.com/us/podcast/ibm-developerworks-podcasts/id153607292" target="_blank">IBM podcasts</a>. I was able to <a href="https://www.ibm.com/developerworks/mydeveloperworks/blogs/scott/entry/glover_and_mccullough_talk_git?lang=en" target="_blank">share about 20 minutes</a> of my <a href="http://www.ibm.com/developerworks/java/library/j-gloverpodcast/" target="_blank">experience with and passion for the Git version control system</a> with his audience. It was an exciting opportunity. Thanks Andy!</p>
<p><a href="http://www.ibm.com/developerworks/podcast/ag/gloverseries-mccullough.mp3" target="_blank">Give it a listen</a> and tell me what you think. But more importantly, <a href="http://git-scm.com/" target="_blank" title="Git">give Git a try</a>! I think you&#8217;ll be pleasantly surprised.</p>
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2010/08/ibm-podcast-andy-glover-interviews-matthew-mccullough-about-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.ibm.com/developerworks/podcast/ag/gloverseries-mccullough.mp3" length="10376866" type="audio/mpeg" />
		</item>
		<item>
		<title>Git Cleanup Screencast</title>
		<link>http://ambientideas.com/blog/index.php/2009/02/git-cleanup-screencast/</link>
		<comments>http://ambientideas.com/blog/index.php/2009/02/git-cleanup-screencast/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 03:23:53 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[SourceCodeControl]]></category>

		<guid isPermaLink="false">http://ambientideas.com/blog/index.php/2009/02/git-cleanup-screencast/</guid>
		<description><![CDATA[ Are you a new  user of Git ?   Here's some basic help with cleaning up your Git working directories &#38; files.   This quick screencast shows you the basics of how Git enables you to ignore files that you never want to track, purge files that are untracked while leaving your tracked files intact, and lastly, roll back all your changes to tracked files to the last-known-good state.  ]]></description>
			<content:encoded><![CDATA[<p>Are you a new <a href="http://git-scm.com/" target="_blank">user of Git</a>? Here&#8217;s some basic help with cleaning up your Git working directories &amp; files. This quick screencast shows you the basics of how Git enables you to ignore files that you never want to track, purge files that are untracked while leaving your tracked files intact, and lastly, roll back all your changes to tracked files to the last-known-good state.</p>
<p><embed src="http://blip.tv/play/Ae3WEpSLPw" type="application/x-shockwave-flash" width="1024" height="600" allowscriptaccess="always" allowfullscreen="true" /></p>
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2009/02/git-cleanup-screencast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clean your Git up to Pull successfully</title>
		<link>http://ambientideas.com/blog/index.php/2009/02/clean-your-git-up-to-pull-successfully/</link>
		<comments>http://ambientideas.com/blog/index.php/2009/02/clean-your-git-up-to-pull-successfully/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 17:53:16 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[SourceCodeControl]]></category>

		<guid isPermaLink="false">http://ambientideas.com/blog/index.php/2009/02/clean-your-git-up-to-pull-successfully/</guid>
		<description><![CDATA[<p>Here's a quick tip to clean your local Git repository of unwanted changes to tracked and untracked files with two Git commands.</p>
]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick <a href="http://www.kernel.org/pub/software/scm/git/docs/git-pull.html" target="_blank">Git pulling &amp; merging</a> tip for those of you learning this awesome <a href="http://en.wikipedia.org/wiki/Distributed_revision_control" target="_blank">Distributed Version Control System</a>.</p>
<h2>Git Pull&#8217;s Double Duty</h2>
<p>As you may be aware, the <a href="http://www.kernel.org/pub/software/scm/git/docs/git-pull.html" target="_blank">git pull command actually does two things under the covers</a>. It does a <code>git fetch</code> to freshen your tracked remote branch and it does a <code>git merge</code> to merge it into the linked local branch. Sometimes this can go awry if you&#8217;ve been experimenting with files locally and forgot to return them to a checked-in state. Git errors out nicely, saying &#8220;I don&#8217;t know what you want me to do, but I&#8217;m going to be cautious here and just let you tell me exactly how to handle this.&#8221;</p>
<h2>Error Message</h2>
<p>One of the possible error messages you&#8217;ll see is:</p>
<blockquote><p>
  <code>error: Entry 'myapp/src/main/resources/scripts/launchapp.bat' not uptodate</code>
</p></blockquote>
<h2>Solutions</h2>
<p>If your local changes are unimportant to you and you just want to get back in alignment with the remote branch, you have two options to apply depending on the state of your local files. First, you can <a href="http://www.kernel.org/pub/software/scm/git/docs/git-reset.html" target="_blank">reset any tracked files to their last committed state</a> via the following command. This discards any local changes to any tracked files.</p>
<blockquote><p>
  <code>git reset --hard</code>
</p></blockquote>
<p>Second, you can <a href="http://www.kernel.org/pub/software/scm/git/docs/git-clean.html" target="_blank">discard any untracked local files</a> via the <code>git clean</code> command, in the case that they are colliding with files that the remote branch has actually added and is now tracking. You can purge your repository&#8217;s current branch of untracked local files by typing:</p>
<blockquote><p>
  <code>git clean -f</code>
</p></blockquote>
<p>And in case you are paranoid about what this will remove, you can get a safe preview of what it would do by typing:</p>
<blockquote><p>
  <code>git clean -n</code>
</p></blockquote>
<p>Which outputs a preview list like so:</p>
<blockquote><p>
  <code>[~/Documents/Code/myproj.git]: git clean -n<br />
  Would remove morecruft.java<br />
  Would remove unwatedfile.txt</code>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2009/02/clean-your-git-up-to-pull-successfully/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

