<?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>databasically // Kansas City Small Business IT &#38;&#38; Ruby on Rails Programming &#187; Version Control</title>
	<atom:link href="http://databasically.com/category/blog/programming/version-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://databasically.com</link>
	<description>Kansas City Small Business IT</description>
	<lastBuildDate>Tue, 20 Jul 2010 21:35:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>git: pull is not possible because you have unmerged files.</title>
		<link>http://databasically.com/2010/07/01/git-pull-is-not-possible-because-you-have-unmerged-files/</link>
		<comments>http://databasically.com/2010/07/01/git-pull-is-not-possible-because-you-have-unmerged-files/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 16:53:52 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Version Control]]></category>

		<guid isPermaLink="false">http://databasically.com/?p=337</guid>
		<description><![CDATA[I saw this error message the other day and I had no clue what it meant.  I&#8217;d never seen that error before!
For reference, I was trying to pull from a remote branch and got the error message:
Pull is not possible because you have unmerged files.
A google search revealed this commit (d38a30df7dd54c5c6883) to the git [...]]]></description>
			<content:encoded><![CDATA[<p>I saw this error message the other day and I had no clue what it meant.  I&#8217;d never seen that error before!</p>
<p>For reference, I was trying to pull from a remote branch and got the error message:</p>
<pre name="code" class="ruby">Pull is not possible because you have unmerged files.</pre>
<p>A google search revealed this commit (<a href="http://github.com/git/git/commit/d38a30df7dd54c5c6883af1de1a03ec7d523cee5">d38a30df7dd54c5c6883</a>) to the git source on January 12, 2010.  </p>
<p>The error messages have been updated to be much clearer. Before, you&#8217;d get &#8220;needs merge&#8221; or &#8220;error building trees&#8221; errors, which didn&#8217;t really mean much.</p>
<p>In this case, I was pulling in many commits and had a conflict partway through. I just needed to resolve the files, add/delete them, commit the result and then continue with the pull.</p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2010/07/01/git-pull-is-not-possible-because-you-have-unmerged-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;warning: updating the current branch&#8221; when pushing to a git repository</title>
		<link>http://databasically.com/2010/03/08/warning-updating-the-current-branch-when-pushing-to-a-git-repository/</link>
		<comments>http://databasically.com/2010/03/08/warning-updating-the-current-branch-when-pushing-to-a-git-repository/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 04:05:07 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Version Control]]></category>

		<guid isPermaLink="false">http://databasically.com/?p=256</guid>
		<description><![CDATA[I pushed some changes after updating git on my server to git 1.6+ and now I get this:
$ git push origin master
...
warning: updating the current branch
warning: Updating the currently checked out branch may cause confusion,
warning: as the index and work tree do not reflect changes that are in HEAD.
warning: As a result, you may see [...]]]></description>
			<content:encoded><![CDATA[<p>I pushed some changes after updating git on my server to git 1.6+ and now I get this:</p>
<pre name="code" class="css">$ git push origin master
...
warning: updating the current branch
warning: Updating the currently checked out branch may cause confusion,
warning: as the index and work tree do not reflect changes that are in HEAD.
warning: As a result, you may see the changes you just pushed into it
warning: reverted when you run 'git diff' over there, and you may want
warning: to run 'git reset --hard' before starting to work to recover.
warning:
warning: You can set 'receive.denyCurrentBranch' configuration variable to
warning: 'refuse' in the remote repository to forbid pushing into its
warning: current branch.
warning: To allow pushing into the current branch, you can set it to 'ignore';
warning: but this is not recommended unless you arranged to update its work
warning: tree to match what you pushed in some other way.
warning:
warning: To squelch this message, you can set it to 'warn'.
warning:
warning: Note that the default will change in a future version of git
warning: to refuse updating the current branch unless you have the
warning: configuration variable set to either 'ignore' or 'warn'.
</pre>
<p>Woah!  After some research, this is because I didn&#8217;t set up my remote folder as &#8220;bare&#8221;. A non-bare repository has a working copy attached to it, and this warning is telling you that said working copy exists and is currently checked out to the branch you&#8217;re trying to push to.</p>
<p>This is bad, because if you were pushing to a co-worker&#8217;s machine, then when they go to commit or run a diff, things will go awry.  In this case, I just didn&#8217;t set up the repository correctly (it was the first one I&#8217;d done!) so I wasn&#8217;t in danger of losing anything.</p>
<p>The fix is to use <code>--bare</code>:<br />
<code>git init --bare</code> or <code>git clone --bare</code></p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2010/03/08/warning-updating-the-current-branch-when-pushing-to-a-git-repository/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Capistrano deploy error &quot;fatal: unable to create &#039;.git/index.lock&#039;: File exists&quot;</title>
		<link>http://databasically.com/2009/10/21/capistrano-deploy-error-fatal-unable-to-create-gitindex-lock-file-exists/</link>
		<comments>http://databasically.com/2009/10/21/capistrano-deploy-error-fatal-unable-to-create-gitindex-lock-file-exists/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 15:54:35 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Version Control]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.databasically.com/?p=132</guid>
		<description><![CDATA[This isn&#8217;t specific to capistrano, necessarily, but I ran into it deploying.
fatal: unable to create '.git/index.lock': File exists

The fix:
Got to your project&#8217;s shared/cached-copy/.git folder and delete index.lock .  It shouldn&#8217;t ever get hung up like that, but it happened to me.
]]></description>
			<content:encoded><![CDATA[<p>This isn&#8217;t specific to capistrano, necessarily, but I ran into it deploying.</p>
<p><code>fatal: unable to create '.git/index.lock': File exists</code><br />
<span id="more-132"></span><br />
The fix:<br />
Got to your project&#8217;s shared/cached-copy/.git folder and delete index.lock .  It shouldn&#8217;t ever get hung up like that, but it happened to me.</p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2009/10/21/capistrano-deploy-error-fatal-unable-to-create-gitindex-lock-file-exists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>git: You asked me to pull without telling me which branch &#8230;</title>
		<link>http://databasically.com/2009/07/01/git-you-asked-me-to-pull-without-telling-me-which-branch/</link>
		<comments>http://databasically.com/2009/07/01/git-you-asked-me-to-pull-without-telling-me-which-branch/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 02:17:44 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Version Control]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.databasically.com/?p=129</guid>
		<description><![CDATA[Received this error when trying to pull from a remote origin:
You asked me to pull without telling me which branch you
want to merge with, and 'branch.master.merge' in
your configuration file does not tell me either.

To fix, I added this to .git/config:

]]></description>
			<content:encoded><![CDATA[<p>Received this error when trying to pull from a remote origin:</p>
<pre>You asked me to pull without telling me which branch you
want to merge with, and 'branch.master.merge' in
your configuration file does not tell me either.</pre>
<p><span id="more-129"></span><br />
To fix, I added this to .git/config:<br />
<script src="http://gist.github.com/190290.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2009/07/01/git-you-asked-me-to-pull-without-telling-me-which-branch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>git: failed to push some refs</title>
		<link>http://databasically.com/2009/06/26/git-failed-to-push-some-refs/</link>
		<comments>http://databasically.com/2009/06/26/git-failed-to-push-some-refs/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 19:23:25 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Version Control]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.databasically.com/?p=126</guid>
		<description><![CDATA[I&#8217;m really digging git, but its error messages are less than helpful at times.
git push origin master
error: failed to push some refs to origin
Most likely, there are changes in the remote repo that you need to pull first:
git pull origin master
Resolve any conflicts, then you can push to the remote git repo.
I&#8217;m not sure why [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m really digging git, but its error messages are less than helpful at times.</p>
<pre class="ruby" name="code">git push origin master
error: failed to push some refs to origin</pre>
<p>Most likely, there are changes in the remote repo that you need to pull first:</p>
<pre class="ruby" name="code">git pull origin master</pre>
<p>Resolve any conflicts, then you can push to the remote git repo.</p>
<p>I&#8217;m not sure why &#8220;failed to push some refs&#8221; couldn&#8217;t include &#8220;(do you need to pull?)&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2009/06/26/git-failed-to-push-some-refs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visualizing git history</title>
		<link>http://databasically.com/2009/03/10/visualizing-git-history/</link>
		<comments>http://databasically.com/2009/03/10/visualizing-git-history/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 20:33:34 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Version Control]]></category>

		<guid isPermaLink="false">http://www.databasically.com/?p=96</guid>
		<description><![CDATA[I&#8217;ve been using git for version control on a new project.  Instead of needing a connection to the server (as CVS and SVN do), changes are stored locally.
Every once in a while, I want to poke back the history. git ships with a graphical repository viewer, but I like gitx better.
git makes branching off [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a href="http://git-scm.com/">git</a> for version control on a new project.  Instead of needing a connection to the server (as CVS and SVN do), changes are stored locally.</p>
<p>Every once in a while, I want to poke back the history. git ships with a graphical repository viewer, but I like <a href="http://gitx.frim.nl/">gitx</a> better.</p>
<p>git makes branching off to try something super easy, which is quickly becoming one of my favorite features. I can create a branch quickly, try something out, switch away and come back later if I want.</p>
<p>Using gitx to view my repository history, I can quickly find where branches diverged and it&#8217;s just kinda neat to look at.</p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2009/03/10/visualizing-git-history/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
