Skip to content

Instantly share code, notes, and snippets.

@posaunehm
Created March 28, 2013 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save posaunehm/5261158 to your computer and use it in GitHub Desktop.
Save posaunehm/5261158 to your computer and use it in GitHub Desktop.
For rebase a branch from svn via master branch
#!/bin/bash
branch=$(git symbolic-ref --short HEAD)
git checkout master
git svn rebase
git rebase master $branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment