Re: git-svn and huge data and modifying the git-svn-HEAD branch directly

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Wong
Date: Monday, February 27, 2006 - 11:46 am

Nicolas Vilz 'niv' <niv@iaglans.de> wrote:

Those messages are from git-update-ref.  What were some of the messages
from git-svn leading up to that point?


You should never, ever modify the git-svn-HEAD branch yourself.
Interface branches should never be modified.  It's the golden rule of
interfacing between different SCM interfaces.  Sorry, I've been doing
things like this this for a while now I guess I didn't make it
abundantly clear in the documentation.


Save your current work in git-svn-HEAD to a private branch

	git branch -b private git-svn-HEAD

then reset git-svn-HEAD to the last revision where it was managed by
git-svn fetch:

	git-checkout git-svn-HEAD
	git-log (look for the last commit with 'git-svn-id:' in it)
	git-reset --hard <last commit with 'git-svn-id:' in it>

Now go to your private branch:

	git checkout private

And continue working on your private branch as usual.

-- 
Eric Wong
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git-svn and huge data and modifying the git-svn-HEAD branc ..., Nicolas Vilz 'niv', (Mon Feb 27, 10:59 am)
Re: git-svn and huge data and modifying the git-svn-HEAD b ..., Eric Wong, (Mon Feb 27, 11:46 am)
Re: git-svn and huge data and modifying the git-svn-HEAD b ..., Nicolas Vilz 'niv', (Mon Feb 27, 12:34 pm)
Re: git-svn and huge data and modifying the git-svn-HEAD b ..., Nicolas Vilz 'niv', (Mon Feb 27, 1:47 pm)
Re: git-svn and huge data and modifying the git-svn-HEAD b ..., Josef Weidendorfer, (Wed Mar 1, 10:14 am)
Re: git-svn and huge data and modifying the git-svn-HEAD b ..., Josef Weidendorfer, (Wed Mar 1, 11:06 am)
Re: git-svn and huge data and modifying the git-svn-HEAD b ..., Josef Weidendorfer, (Wed Mar 1, 1:26 pm)
Re: git-svn and huge data and modifying the git-svn-HEAD b ..., Josef Weidendorfer, (Wed Mar 1, 1:54 pm)
Re: git-svn and huge data and modifying the git-svn-HEAD b ..., Johannes Schindelin, (Wed Mar 1, 2:07 pm)