<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>Diego, el gnomo &#187; problem</title>
	<atom:link href="http://blogs.gnome.org/diegoe/tag/problem/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.gnome.org/diegoe</link>
	<description>Pisco Sour is GNOME's official cocktail</description>
	<lastBuildDate>Tue, 09 Aug 2011 10:59:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/pe/</creativeCommons:license>		<item>
		<title>Saving your neck when git-svn dcommit fails</title>
		<link>http://blogs.gnome.org/diegoe/2009/03/18/saving-your-neck-when-git-svn-dcommit-fails/</link>
		<comments>http://blogs.gnome.org/diegoe/2009/03/18/saving-your-neck-when-git-svn-dcommit-fails/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 02:08:49 +0000</pubDate>
		<dc:creator>diegoe</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[dcommit]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[git-svn]]></category>
		<category><![CDATA[problem]]></category>

		<guid isPermaLink="false">http://blogs.gnome.org/diegoe/?p=105</guid>
		<description><![CDATA[Over the weekend I had to send some changes to an SVN repo. Thing is that I use git-svn to have all those XXI century benefits like local commits. Sadly I had some problems with git-svn, concretely it failed half the way through sending my really big number of changes. The result was that I [...]]]></description>
			<content:encoded><![CDATA[<p>Over the weekend I had to send some changes to an SVN repo. Thing is that I use git-svn to have all those XXI century benefits like local commits.</p>
<p>Sadly I had some problems with git-svn, concretely it failed half the way through sending my really big number of changes. The result was that I was left with uncommitted changes and missing commits after such set of changes. No need to say that I was really nervous about the state of my hard work of the week&#8230;</p>
<p>So after some desperate google searches and some questions to my personal GIT expert, <a href="http://blogs.gnome.org/desrt/">desrt</a>, I found this <a href="http://groups.google.com/group/google-code-hosting/browse_thread/thread/e0a6597f7f4c7739?pli=1">mail in google groups</a>. I reproduce the process here:</p>
<p><strong>How to save your neck when git-svn dcommit fails half through the process</strong></p>
<ol>
<li>Open <code>.git/logs/HEAD</code></li>
<li>Look for your most recent commit (note that these commits are sorted by &#8220;unix time&#8221;, although you can also find the latest one by reading the shortlog there</li>
<li>Confirm that the commit you found is the right one: git show <hash from log></li>
<li><code>git reset --hard <em>hash from log</em></code></li>
<li><code>git svn rebase</code></li>
<li><code>git svn dcommit</code></li>
</ol>
<p>This picks up where <strong>it left off</strong>, so you won&#8217;t loose anything, happy happy happy git <img src='http://blogs.gnome.org/diegoe/wp-content/mu-plugins/tango-smilies/tango/face-smile.png' alt=':-)' class='wp-smiley' /> .</p>
<p>Hope this saved your neck like it saved mine. Other tips welcome <img src='http://blogs.gnome.org/diegoe/wp-content/mu-plugins/tango-smilies/tango/face-smile.png' alt=':-)' class='wp-smiley' /> !</p>
<p><strong>Update:</strong> Mike lets me know that the commands were bad written because of html entities and stuff, fixed now.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/diegoe/2009/03/18/saving-your-neck-when-git-svn-dcommit-fails/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  blogs.gnome.org/diegoe/tag/problem/feed/ ) in 1.16740 seconds, on Feb 10th, 2012 at 10:43 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 10th, 2012 at 11:43 pm UTC -->
