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

Rewriting git history during git-svn conversion

From
RDRobert Dailey <rcdailey.lists@gmail.com>
Date
Mar 3, 2014, 18:38 UTC
Message-ID
<CAHd499DqoUEKeu4uM5w7Y6Tm-tE-oJMUdz4RxP9s6CpN=LS9Bg@mail.gmail.com>
Hi,

I am converting my team's SVN server to GIT but they aren't ready to transition yet. People are still working out of SVN, so I need to keep the git-svn clone around to do 'git svn fetch' to continue to keep it synchronized with SVN.

Once everyone is ready to switch, and after converting all of the tag-branches to real GIT tags, I plan to push all branches & tags to the new central git repository.

However, before pushing to the central GIT repo, I want to remove some giant directories from the repository history. Specifically some third party library directories. I have found a way to do this here: http://stackoverflow.com/questions/10067848/remove-folder-and-its-contents-from-git-githubs-history

Is it safe to do this while still using git svn fetch? Will it properly continue to convert SVN commits on top of my rewritten history? If not, what changes can I make after I run the commands linked by the URL above so that git svn continues to work normally?

Note that I plan to delete the third party libraries from SVN side and then pull down the changes to git through git-svn, then at that point clean it up (hopefully the git filter-branch command ignores the commit that deleted the files and only hunts down the commits where they were added or modified).

Any guidance on this would be much appreciated.
Next: Thomas Ferris Nicolaisen
Message 1 of 3 in “Rewriting git history during git-svn conversion”
  1. Robert DaileyMar 3, 2014
  2. Thomas Ferris NicolaisenMar 4, 2014
  3. Robert DaileyMar 6, 2014

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.