Skip to content

Instantly share code, notes, and snippets.

View AlessandroVaccarino's full-sized avatar

Alessandro Vaccarino AlessandroVaccarino

View GitHub Profile
@AlessandroVaccarino
AlessandroVaccarino / svn2git.sh
Last active June 15, 2018 15:29 — forked from mlocati/svn2git.sh
Convert SVN repository to GIT
#!/bin/bash
# This script was written for Ubuntu 14.04, Ubuntu 16.04 and MacOS 10.13.5
# Other operating systems may need a few changes
WORK_DIR=~/svn2git_`date "+%Y%m%d-%H%M%S"`
AUTHORS_FILE=$WORK_DIR/authors.txt
GITDIR_DIRTY=$WORK_DIR/dirty
GITDIR_FINAL=$WORK_DIR/final