Two Guys Arguing

Notes to self: Keep SVN in sync w/ Git The Poor Man’s Way

Posted in Uncategorized by benjaminplee on 11.12.10

There is probably a much better/faster way to do this leveraging git-svn, but for the poor fool who has to keep an SVN repo in sync w/ the development Git repo for client consumption … here are a couple helpful one liners…

Copy from the Git repo directory to the SVN repo directory

rsync -r $GIT_DIR $SVN_DIR

Detect if there are any non-.svn folder differences between the directories after (good sanity check)

diff -r $GIT_DIR $SVN_DIR | grep -v '\.svn' | wc