Today we are going to cloning repository from SVN (sub-version), with git-cli.
In this case, I use git-scm on windows-os. Download git-scm for windows, here. You can choose x86-installer, x64-installer, x86-portable, and x64-portable.
After download setup, don't forget to install like usual of any software. Then, add git path program to environment variable system -> choose Path, then add git path.
Check git in your cmd (command prompt):
$ git --version (enter)
Now, let's try to clone svn repository.
$ git svn clone https://example.com/reponame/trunk reponame (enter)
You will initialize git repository, and autenticate svn account from server.
Wait until completed.
If your internet connection disconnected, here the command to resume your clone process.
$ git svn fetch (enter)
Note :
If you get error while clone svn repository with git-cli, check you error.
In my case, the error said :
Can't load '/usr/lib/perl15/vendor_perl/auto/SVN/_Core/_Core.dll' for module SVN:: No such file or directory at /usr/lib/perl15/Core/core_perl/Dynaloaderpm line 193. at /usr/lib/perl15/vendor_perl/SVN/Base.pm line 59.
That was actually I found on Google for solution. It's a missing file of msys-expat-1.dll on git path program. You can download that file, here.
Unzip to /usr/bin on git path program.
Open new cmd and try again to clone your svn repository with git-cli.
Good luck.
Source :
https://git-scm.com/docs/git-svn
Comments
Post a Comment