Coder’s Eye

A site about one of the three passions in my life.

Coder’s Eye header image 2

Git SVN Error - Fixed

September 16th, 2008 · No Comments

While working on a SVN project using my new favorite tool, “git”, I ran into a small problem. A network bobble caused the subversion portion to fail. I stopped it, but then when I tried again, git said:

Cannot dcommit with a dirty index. Commit your changes firstor stash them with `git stash'.

Some searching found the solution:


1. git checkout $branch

2. git log -g
(look for your last commit, copy the hash for it)

3. git reset --hard $hash

4. git svn rebase

5. git svn dcommit

It worked perfectly, and I can once again use git side-by-side with the unwashed legions of SVN users.

Tags: Tips · Open Source

Bookmark this article

del.icio.us:Git SVN Error - Fixed digg:Git SVN Error - Fixed spurl:Git SVN Error - Fixed wists:Git SVN Error - Fixed simpy:Git SVN Error - Fixed newsvine:Git SVN Error - Fixed blinklist:Git SVN Error - Fixed furl:Git SVN Error - Fixed reddit:Git SVN Error - Fixed fark:Git SVN Error - Fixed blogmarks:Git SVN Error - Fixed Y!:Git SVN Error - Fixed smarking:Git SVN Error - Fixed magnolia:Git SVN Error - Fixed segnalo:Git SVN Error - Fixed gifttagging:Git SVN Error - Fixed

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment