git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Can I recover lost commits in a SVN repository using a local tracking git-svn branch?

From
ISIan 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.
Previous: Ian Stevens
Message 2 of 2 in “Can I recover lost commits in a SVN repository using a local tracking git-svn branch?”
  1. Ian StevensApr 26, 2010
  2. Ian StevensApr 26, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.