Getting started with Git
To import the Subversion repository into a Git repository, use the following commands:Important: We are now fully migrated to a native git server solution. All procedures around using git is therefore slightly different, since there is no longer subversion synchronization process. To clone the new git repository, you can use
Code Block |
---|
$ git clone git://git.apache.org/trafficserver.git cd trafficserver/.git wget httphttps://git.apache.org/authors.txt; cd .. git config svn.authorsfile ".git/authors.txt" git svn init --prefix=origin/ --tags=tags --trunk=trunk --branches=branches \ https://svn-wip-us.apache.org/repos/asf/trafficserver/traffic git svn rebase.git |
This will give you a branch named trunk, for people used to git, it'd make more sense to use the name master. You can rename the trunk branch using
Code Block |
---|
git branch -m master
|
Alternatively, you can do the Subversion to Git conversion yourself, but it is much slower:
...
If you need read-only access, please use the http:// URL instead.
More details
More details for using Git and Subversion (particularly here at the ASF), see the following links:
Some older docs available at