svn to git

SVN to git

配置用户:

#git config --global user.name "root"
#git config --global user.email "admin@example.com"

执行如下步骤:


1、 git svn clone http://192.168.1.1/svn//myproject desdir   

2、cd desdir

3、git init

4、git remote add origin git@192.168.3.3:root/test.git

5、git push -u origin master

原文地址:https://www.cnblogs.com/forturn/p/5653681.html