-
Notifications
You must be signed in to change notification settings - Fork 0
Simple script for making pure git repo copy from a git-svn repo. Based on git-svn-migrate.
License
phluks/git-svn-pure-git-cp
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
!!!WARNING!!! This script has not been tested extensively. It should not break anything, but it may make a bit of a mess. I have used it myself without grief. If it does not complete you will have a <taget>.tmp dir and/or a <target>.git dir. You can try debug for yourself or just delete the 2 dirs with rm -rf <dir>. ABOUT git-svn-pure-cp --------------------- This is a simple script meant to make a clone of a git repository created with the git-svn suite to a fully functional ordinary git bare repository in a subdir of PWD. Unlike in the case of a normal git-svn clone. This means, that you can make ordinary git clones from the copy. However, the pure git repo knows nothing of the original svn repo and will not be able to interoperate with it. Its a clean cut. The amount of the original svn history of the copy is entirely up to the amount imported into the svn-git repo. All of the history of the svn-git repo should be imported (please review the script and the result). The script is essentially a subset of git-svn-migrate. USAGE ----- git-svn-pure-cp <path-to-git-svn-repo> <name-of-copy> USE CASE -------- For most ordinary exports of svn repos with standard layout, you would be much better off using a tool like git-svn-migrate. If you already have a git-svn repo, or you for some reason need to make your own svn-to-git export, git-svn-pure-git-cp enables you to "upgrade" your resulting svn export repo to a pure git repo. REQUIREMENTS ------------ Reasonably recent version of git (Im not quite sure which version). Shell invironment - like bash. The script makes an intermediary copy of the git-svn repo in PWD (present- working-directory). So you must have at least 2 times the diskspace of the original repo available. You must be able to read the original repos and be able to write to PWD. RESSOURCES ---------- Programs: git-svn-migrate: https://github.com/JohnAlbin/git-svn-migrate git-svn-abandon: https://github.com/nothingmuch/git-svn-abandon Blogs: http://john.albin.net/git/convert-subversion-to-git http://john.albin.net/git/git-svn-migrate http://blog.woobling.org/2009/06/git-svn-abandon.html LICENSE ------- GPL2 - Same as git-svn-migrate See LICENSE.txt.
About
Simple script for making pure git repo copy from a git-svn repo. Based on git-svn-migrate.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published