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

Switch from svn to git and modify repo completely

From
Matthias Fechner <idefix@fechner.net>
Date
Nov 19, 2011, 17:11 UTC
Message-ID
<4EC7E32A.9040903@fechner.net>
Dear Git List,

I just started to migrate a svn repo to a git repo and was successfully with the "git svn" command and waiting a long time :)

I have now some confidential documents in the repository I must remove completely (including the complete history). These are single files spread over the complete repository. Is this possible with git?

The next step I would like to do is separate the repo and smaller ones. The problem here is it is not only take this directory and move it out, it is a complete mess and the files are spread over the complete repo and over all the revisions (files were moved around in the old subversion repo from folder to folder). Is there a possibility to say take file1, file2, fileN and directory1, directoryN and move it to another repo or remove all not matching files/directories completely?

Thanks a lot for some hints which commands I could use here or if it is possible.

Bye Matthias

Next: Alexey Shumkin
Message 1 of 6 in “Switch from svn to git and modify repo completely”
  1. Matthias FechnerNov 19, 2011
  2. Alexey ShumkinNov 19, 2011
  3. Matthias FechnerNov 20, 2011
  4. Jonathan NiederNov 21, 2011
  5. Matthias FechnerNov 27, 2011
  6. Matthias FechnerNov 28, 2011

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.