Linux how to set up git to share with svn

  
                

Linux users have a lot of people using svn, but now many users have switched to git, because svn is not as good as git, but replacing svn with git is cumbersome, so many users want to know how to make git Share it with svn, let's take a look at the solution.

git svn command

basic Git for all the Subversion bridging commands is git svn. All commands start with it. There are quite a few related commands. This article does not cover the use of git svn commands. It is only a brief description of the most commonly used ones. More knowledge reference clerk pro git.

Organizing User Name and Email Mappings

In Subversion, each submitter has a username on the host and is recorded in the commit message. If you want to map existing information better into Git author data, you need a mapping from the Subversion username to the Git author, because Git uses a mailbox to identify a submitter. Create a file called user.txt, one svn author per line = author nickname "email address", use the following format to represent the mapping relationship:

user.txt demo

schacon = Scott Chacon [email protected]

selse = Someo Nelse "[email protected]"

The author name of all submitters of the SVN code can be obtained by the following command:

Get the author name submitted by svn

svn log --xml

Copyright © Windows knowledge All Rights Reserved