SVN--SVN Project migration to GIT__SVN migrate git

Source: Internet
Author: User

SVN has a lot of advantages, but Git's impact on SVN is really great, and now many of the company's projects are migrating to Git, and here's what I did when I did the SVN migration project to git, including the SVN submission log, which migrated to Git.

Temporarily finishing these, the specific operation if there is not understand, you can contact me. The QQ number on the right, welcome to discuss together.
Related actions:
1: Command line execution

# #clone svn-> git  address Support protocol: svn://, http://, https://. Note that this URL should point to the base repository of the project, such as # #http://svn.mycompany.c Om/myrepo/repository. Don't point to/trunk,/tag or/branches.
git svn clone svn://10.68.245.11/tclshop--authors-file=users.txt--no-metadata-s dufy-move 
# folder for #进入clone
cd dfuy-move 
# #使所有的 SVN commit was captured.
git svn fetch
# #在git中查看svn commit record information
git log--pretty= Oneline
# #查看分支--SVN tag is resolved as a git branch, you need to convert
git branch-r 
# #转换分支-tag  
git tag tags_20160329_hg origin/ TAGS/TAGS_20160329_HG  
# #删除远程的分支 (tags)
git branch-r-D origin/tags/tags_20160329_hg   
# #本地初始化git仓库完成
git remote add Origin git@10.68.25.20:move/dufy-tclshop-test-two.git 
#推送到远端的git的仓库中
git push origin Master--tags
# #切换到分支
git checkout 16130_20151125_hg 
# #提交分支到远程的仓库中

2: Using the Tortoisegit client can also be related to the operation

Resources:
8.2 Git with other systems-migrate to Git
Https://git-scm.com/book/zh/v1/Git-%E4%B8%8E%E5%85%B6%E4%BB%96%E7%B3%BB%E7%BB%9F-%E8%BF%81%E7%A7%BB%E5%88%B0-Git

Migrate code libraries from SVN to Git and keep all commit records
Http://www.lovelucy.info/codebase-from-svn-to-git-migration-keep-commit-history.html

SVN migration to Git under the full process
Http://www.aikaiyuan.com/6584.html

git Dances with svn
Https://www.chenyudong.com/archives/git-and-svn-collaboration.html

The process of SVN migrating to Git (+ some tips)
Http://www.blogjava.net/lishunli/archive/2012/01/15/368562.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.