Posts

Showing posts with the label SVN

SVN migrate to GIT

1. Change the folder structure of SVN Each project has three folders a. trunk: contain the current version b. tags: contain all the tags c. branches: contain all the branches 2. Use command to migrate git svn clone --stdlayout --no-metadata -A users.txt svn://192.168.204.8/<path>/<project name> <path>/<project name> Example: git svn clone --stdlayout --no-metadata -A users.txt svn://192.168.204.8/Acquisitions/Acquisitions-MyMerchant TTL/Acquisitions-MyMerchant 3. Use command to convert the branches and tags tags     $ cp -Rf .git/refs/remotes/tags/* .git/refs/tags/     $ rm -Rf .git/refs/remotes/tags branches     $ cp -Rf .git/refs/remotes/* .git/refs/heads/     $ rm -Rf .git/refs/remotes Pasted from: < http://rongjih.blog.163.com/blog/static/3357446120107111449543/ >