Skip to content

Instantly share code, notes, and snippets.

@yuanmai
Created June 26, 2012 08:20
Show Gist options
  • Save yuanmai/2994352 to your computer and use it in GitHub Desktop.
Save yuanmai/2994352 to your computer and use it in GitHub Desktop.
git svn add remote branch
git config --add svn-remote.newbranch.url https://svn/path_to_newbranch/
git config --add svn-remote.newbranch.fetch :refs/remotes/newbranch
git svn fetch newbranch [-r<rev>]
git checkout -b local-newbranch -t newbranch
git svn rebase newbranch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment