Setup Git Server, and Migrate SVN
- Create git repository in server side
- Basic HTTP Authentication
- Migrate SVN to Git repository
Notes: CentOS 6.2, Git Client: SourceTree, Github clinet
Create git repository in server side
1 | # 1. Install git-core |
Basic HTTP Authentication
- create
account-list
file byhtpasswd -c account-list git-admin
- create group:
echo "admin: git-admin" > htgroup
- add
/etc/httpd/conf.d/git.conf
, such as below:
1 | SetEnv GIT_PROJECT_ROOT /var/git/repos |
Migrate SVN to Git repository
Tools: subgit
1 | # 1. dump svn to git repository with subgit |