Converting SVN repositories to GIT

Clone a svn base on local

If we use git,at first create svn base,so we can check log information。

git-svn clone -s svn+ssh://<svn_repository> <dir>

-s --- svn base have standard(trunk、branches、tags),if your svn base have self defined,you can choose -T、-b and -t to selete。

The command <svn_repository>/ download all log and files form svn base,and create a <dir> directory to save the base。Then you can use git on the directory。
Have more information

man git svn

你可能感兴趣的:(SVN,git,ssh)