This is the third day of my participation in the August Text Challenge.More challenges in August
svn to git
1. Use svn2Git
1. Yum install – y ruby git git – SVN (configuration epel source) 2. Gen install svn2git 3. Svn2git http://10.6.60.40/svn/XXXX/SourceCode –notrunk –authors /root/users.txt –branches=06platform –branches=06platform/inttest –notag # If there are subcategories under branches that need to be used as branches, use the –branches parameter to specify path(–branches=06platform/ Inttest) 4. Git branch -d/ -d branch 5. Git commit, git add, git commit [email protected]:CoreProjectNew/business/frontend.git 7.git push origin –all
Git SVN Clone
Preparation for migration: Mapping user file 1. Git SVN clone http://10.6.60.40/svn/XXXXSourceCode — the authors – the file = / root/author. TXT – branches = 26 prpins prpins 2. Git checkout -b inttest inttest(local branch) 3. Git branch -d/ -d branch Git commit, git add, git commit) 5 [email protected]:CoreProjectNew/business/frontend.git 6.git push origin –all
Parameter Description:
http://10.6.60.40/svn/XXXX/SourceCode # # SVN warehouse address – the authors – the file mapping user files – branch prpins branches # # project dir name
Git SVN Fetch can be used to update remote branches when the migration is interrupted due to large projects or unstable SVN servers
1.cd project/
2.git svn fetch
Error record:
Unknown errors may occur with the SVN2Git tool
1.W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no item: File not found: revision 100, path ‘/SourceCode/25zyicloan’
Resolution: This may be caused by a historical version not being found. It is best to specify the — Revision parameter
2.RA layer request failed: REPORT of ‘/svn/XXXX/! SVN/ME ‘: Could not read chunk size: Connection was closed by server (http://10.6.60.40) at /usr
Solution: The connection is closed due to block reading failure and git SVN clone is used, which may be caused by network reasons
3.Author: xx not defined in users.txt file
Add users. TXT to the users.txt file and obtain all users from the SVN library during mapping
Help:
Help.github.com/articles/so… (Github help) Standard and non-standard library migration is explained in detail here