Skip to main content

svn2git

SVN2GIT docker

Commands

Get list of authors

Checkout

svn co --username your_name https://svn.server.com/repository

# List authors

svn log --quiet | grep "^r" | awk '{print $3}' | sort | uniq > authors.txt

Build

docker build -t svn2git . --no-cache --network=host

# OR

docker build -t svn2git .

Run

docker run -d -v \<local-path>:/app/repos svn2git

# Example

docker run -d -v /tmp/svn/repos:/app/repos svn2git

Inside docker

svn2git https://svn.apache.org/repos/asf/zookeeper/ --authors authors.txt --verbose

cd \<git-folder>

Push to github

git gc

git add .

git commit -m "Initial commit"

git branch -M main

git remote add origin url

git push -u origin main

External links

svn2git