<?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>btaz &#187; SCM</title>
	<atom:link href="http://www.btaz.com/category/scm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.btaz.com</link>
	<description>Promoting the art of coding</description>
	<lastBuildDate>Fri, 16 Jul 2010 17:01:58 +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>fatal: git checkout: updating paths is incompatible with switching branches.</title>
		<link>http://www.btaz.com/scm/git/fatal-git-checkout-updating-paths-is-incompatible-with-switching-branches/</link>
		<comments>http://www.btaz.com/scm/git/fatal-git-checkout-updating-paths-is-incompatible-with-switching-branches/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 18:16:09 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[GIT]]></category>
		<category><![CDATA[git checkout fatal updating paths incompatible switching branches]]></category>

		<guid isPermaLink="false">http://www.btaz.com/?p=162</guid>
		<description><![CDATA[Using GIT I tried to pull down a new remote branch using:
git checkout --track -b my-branch-name origin/my-branch-name
When I did this I got this error message:
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'origin/my-branch-name' which can not be resolved as commit?
This error message was a tad confusing. The solution in [...]


Related posts:<ol><li><a href='http://www.btaz.com/scm/git/git-fatal-you-have-not-concluded-your-merge-merge_head-exists/' rel='bookmark' title='Permanent Link: GIT Fatal You Have not Concluded Your Merge MERGE_HEAD Exists'>GIT Fatal You Have not Concluded Your Merge MERGE_HEAD Exists</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Using GIT I tried to pull down a new remote branch using:</p>
<pre>git checkout --track -b my-branch-name origin/my-branch-name</pre>
<p>When I did this I got this error message:</p>
<pre>fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'origin/my-branch-name' which can not be resolved as commit?</pre>
<p>This error message was a tad confusing. The solution in my case was simple though, apparently you can&#8217;t switch to a different remote branch if your local master is not up-to-date with the remote origin/master so performing:</p>
<pre>git pull</pre>
<p>resolved the issue and after this I was able to successfully pull down the remote branch.</p>


<p>Related posts:<ol><li><a href='http://www.btaz.com/scm/git/git-fatal-you-have-not-concluded-your-merge-merge_head-exists/' rel='bookmark' title='Permanent Link: GIT Fatal You Have not Concluded Your Merge MERGE_HEAD Exists'>GIT Fatal You Have not Concluded Your Merge MERGE_HEAD Exists</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.btaz.com/scm/git/fatal-git-checkout-updating-paths-is-incompatible-with-switching-branches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GIT Fatal You Have not Concluded Your Merge MERGE_HEAD Exists</title>
		<link>http://www.btaz.com/scm/git/git-fatal-you-have-not-concluded-your-merge-merge_head-exists/</link>
		<comments>http://www.btaz.com/scm/git/git-fatal-you-have-not-concluded-your-merge-merge_head-exists/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 06:23:15 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[GIT]]></category>
		<category><![CDATA[fatal]]></category>
		<category><![CDATA[MERGE_HEAD exists]]></category>

		<guid isPermaLink="false">http://www.btaz.com/?p=152</guid>
		<description><![CDATA[fatal: You have not concluded your merge. (MERGE_HEAD exists)
I got this message because when I performed a &#8220;git pull&#8221;. I searched for a solution for this problem on the Internet and it wasn&#8217;t until I found this post that I was able to resolve this issue. The problem was that I:

Performed a &#8220;git pull&#8221; and [...]


Related posts:<ol><li><a href='http://www.btaz.com/scm/git/fatal-git-checkout-updating-paths-is-incompatible-with-switching-branches/' rel='bookmark' title='Permanent Link: fatal: git checkout: updating paths is incompatible with switching branches.'>fatal: git checkout: updating paths is incompatible with switching branches.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>fatal: You have not concluded your merge. (MERGE_HEAD exists)</p>
<p>I got this message because when I performed a &#8220;git pull&#8221;. I searched for a solution for this problem on the Internet and it wasn&#8217;t until I found this <a title="git merge issue patch" href="http://lists.zerezo.com/git/msg692855.html">post</a> that I was able to resolve this issue. The problem was that I:</p>
<ol>
<li>Performed a &#8220;git pull&#8221; and the automatic merge failed and I ended up with merge conflicts</li>
<li>I resolved the merge conflicts and added the resolved files back using &#8220;git add&#8221;</li>
<li>Performed a new &#8220;git pull&#8221; and got the &#8220;Fatal You Have not Concluded Your Merge MERGE_HEAD Exists&#8221; error</li>
</ol>
<p>Apparently step 3 overrides MERGE_HEAD, starting a new merge with a dirty index. According to the post this is a common mistake made by programmers that are used to version control systems where the user follows an &#8220;update&#8221; and &#8220;commit&#8221; work flow.</p>
<p>So how do we resolve this issue? What worked for me was to follow the instructions for how to &#8220;Undo a merge or pull inside a dirty work tree&#8221; found <a title="Undo a merge or pull inside a dirty work tree" href="http://www.kernel.org/pub/software/scm/git/docs/git-reset.html">here</a>.</p>
<ol>
<li>I used &#8220;git reset &#8211;merge ORIG_HEAD&#8221;</li>
<li>I resolved the merge conflicts again and added the resolved files back using &#8220;git add&#8221;</li>
<li>I was then finally able to &#8220;push&#8221; my changes!</li>
</ol>
<p>According to the documentation if you run a &#8220;git reset &#8211;hard ORIG_HEAD&#8221; it will let you go back to where you were before you were trying to commit your changes, however you will lose local changes. Most likely not what you want to do. Using &#8220;git reset &#8211;merge&#8221; will let you keep your local changes. You will however have to re-resolve your conflicting merge files.</p>
<p>Some additional information on this topic can be found <a title="refuse to merge during a merge" href="http://n2.nabble.com/PATCH-refuse-to-merge-during-a-merge-td2983703.html">here</a>.</p>


<p>Related posts:<ol><li><a href='http://www.btaz.com/scm/git/fatal-git-checkout-updating-paths-is-incompatible-with-switching-branches/' rel='bookmark' title='Permanent Link: fatal: git checkout: updating paths is incompatible with switching branches.'>fatal: git checkout: updating paths is incompatible with switching branches.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.btaz.com/scm/git/git-fatal-you-have-not-concluded-your-merge-merge_head-exists/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>svn: Inconsistent line ending style when trying to commit a binary file</title>
		<link>http://www.btaz.com/scm/svn-inconsistent-line-ending-style-when-trying-to-commit-a-binary-file/</link>
		<comments>http://www.btaz.com/scm/svn-inconsistent-line-ending-style-when-trying-to-commit-a-binary-file/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 19:34:50 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[SCM]]></category>
		<category><![CDATA[Subversion / SVN]]></category>

		<guid isPermaLink="false">http://www.btaz.com/?p=54</guid>
		<description><![CDATA[If you get this error message &#8220;svn: Inconsistent line ending style&#8221; when trying to commit a binary file into your SVN repository then Subversion probably thinks that your file is a text file.
First verify your file with:
svn proplist &#60;your-file&#62;
If the result contains svn:eol-style but you know that your file is a binary file then you [...]


Related posts:<ol><li><a href='http://www.btaz.com/java/jdbc/dbvisualizer-auto-commit-problem/' rel='bookmark' title='Permanent Link: DbVisualizer auto commit problem'>DbVisualizer auto commit problem</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you get this error message &#8220;svn: Inconsistent line ending style&#8221; when trying to commit a binary file into your SVN repository then Subversion probably thinks that your file is a text file.</p>
<p>First verify your file with:</p>
<pre>svn proplist &lt;your-file&gt;</pre>
<p>If the result contains <span style="color: #0000ff;">svn:eol-style</span> but you know that your file is a binary file then you have a problem where Subversion thinks the file is a text file even though it&#8217;s not. We fix this by first deleting the erroneous properties and then adding the ones we want.</p>
<pre>svn propdel svn:eol-style &lt;your-file&gt;</pre>
<pre>svn propset svn:mime-type application/octet-stream &lt;your-file&gt;</pre>
<p>Verify your file again with the command below</p>
<pre>svn proplist &lt;your-file&gt;</pre>
<p>If everything worked it should say <span style="color: #0000ff;">svn:mime-type</span></p>


<p>Related posts:<ol><li><a href='http://www.btaz.com/java/jdbc/dbvisualizer-auto-commit-problem/' rel='bookmark' title='Permanent Link: DbVisualizer auto commit problem'>DbVisualizer auto commit problem</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.btaz.com/scm/svn-inconsistent-line-ending-style-when-trying-to-commit-a-binary-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
