Re: Can I recover lost commits in a SVN repository using a local tracking git-svn branch?
- From
- Ian Stevens <iancstevens@gmail.com>
- Date
- Apr 26, 2010, 15:21 UTC
- Message-ID
- <f01c5562-3cb1-4307-a5ab-f51e5157eba9@c21g2000yqk.googlegroups.com>
- In-Reply-To
- <904c3ddb-a565-4514-9f5e-83b3706b9fec@t36g2000yqt.googlegroups.com>
Here is how I achieved what I wanted:
1. Re-cloned http://tracked-svn/trunk in a fresh git-svn repo. 2. Added my old git-svn repo as a remote to the fresh repo. (eg. git remote add -f up-to-date /path/to/repo) 3. git merge remotes/up-to-date/master 4. git svn dcommit
Rebasing on my old repo gives no errors, and dcommit works as expected.
This might not be the best way to recover commits, but it got me what I wanted.
Ian.