Re: Can I recover lost commits in a SVN repository using a local tracking git-svn branch?
From: Ian Stevens <hidden> Date: 2016-06-15 22:48:42
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.