I have a rather large svn centralized repository we use with my team. Now I want to use git(-svn) locally, so I made a git-svn clone. This worked fine, but the git-svn clone took a very long time to complete. In contrast, a git clone usually doesn't take that long.
How can a colleague duplicate my svn clone so that he doesn't need to checkout and transform the entire svn history again? I.e. without interaction with svn.
Of course we want the colleague to be able to perform fetch and dcommit to the central svn repository, using his own credentials.
Thnx.
In short, this procedure is very fragile and not recommended. See git svn man page, section Caveats:
For the sake of simplicity and interoperating with Subversion, it is recommended that all git svn users clone, fetch and dcommit directly from the SVN server, and avoid all git clone/pull/merge/push operations between git repositories and branches. The recommended method of exchanging code between git branches and users is git format-patch and git am, or just 'dcommit’ing to the SVN repository.
So everybody who wants to use git svn should clone his/her own copy from the SVN server.
Another solution is to use SubGit, which will provide you with a git bridge to the repository that you can use interchangeably with SVN:
SubGit is tool for a smooth, stress-free Svn to Git migration. Install it once on the server side and use both Subversion and Git as long as you like.
SubGit lets one to set up a bidirectional Subversion to Git replication (writable mirror). Visit documentation page to get more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With