Posts tagged bare repository
Convert SVN to GIT bare repository
013 years ago
When trying to convert a SVN repository that contained all our projects, I couldn’t find a good solution on the internet on one page.
The most usefull pages were:
https://github.com/nirvdrum/svn2git
http://book.git-scm.com/4_tracking_branches.html
I combined them together and described the steps below that will get the job done.
sudo adduser git nano /etc/group git:x:100:usera,userb,userc sudo mkdir /usr/local/git_root sudo chown git.git /usr/local/git_root sudo chmod 2770 /usr/local/git_root
Create authors.txt file for user mapping:
root = Root <root@example.local> usera = My name <myname@example.local>
To get a listing of all users in the repository:
svn log file:///development/svn_projects | grep -E