1

Let's imagine that I have a very big (> 1Gb) SVN repository, I check it out in full with git svn but then decides that I want to stop tracking some directories / files on the "git side", that is, not tracking locally and not pushing when I push the branch to a remote.

I imagine that deleting those with git rm would work, however, my question is: does this break things for git-svn or will git-svn still be able to update from SVN?

Cedric H.
  • 7,980
  • 10
  • 55
  • 82

1 Answers1

1

You might want to try a sparse clone in a separate local Git repository, as in this question, with git svn clone --include-path.

Anything else would change the checksum of the existing revision (if you used git filter-branch) or would dcommit a deletion (if you use git rm)

Or you could mark the directory as ignored, adding the .gitignore to the Subversion repository, for others to also ignore the same folder.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250