Skip to content

Instantly share code, notes, and snippets.

@galak-fyyar
Last active August 29, 2015 14:03
Show Gist options
  • Save galak-fyyar/1b67a146783c56070456 to your computer and use it in GitHub Desktop.
Save galak-fyyar/1b67a146783c56070456 to your computer and use it in GitHub Desktop.
git svn fetch new branch
#!/bin/sh
branch_url=$1
rev=`svn log --stop-on-copy $branch_url | tail -4 | awk '{print $1}' | cut -c 2-500 | head -n 1`
git svn fetch -r $rev
git svn fetch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment