Skip to content

Instantly share code, notes, and snippets.

@skseth
skseth / gist:477d46a0bf835692a35979ccaaa3a785
Created September 29, 2018 18:33 — forked from proger/gist:1877247
oneway git->svn sync
#!/bin/bash
SVN_HOST="https://svn/path/to/repo"
git checkout master
git pull --rebase
git config --local svn-remote.svn.url "${SVN_HOST}"
git config --local svn-remote.svn.fetch ":refs/remotes/git-svn"
git config --local svn.rmdir true