Skip to content

Instantly share code, notes, and snippets.

@dbapl
Created January 5, 2016 21:30
Show Gist options
  • Save dbapl/259dcbe27381be24cf6e to your computer and use it in GitHub Desktop.
Save dbapl/259dcbe27381be24cf6e to your computer and use it in GitHub Desktop.
Unpack git refs. Ideal for svn to git migration, so you can copy refs from remote directory.
git show-ref | while read f; do echo $(echo $f); echo $(echo $f| cut -c1-40); echo $(echo $f| cut -c42-); echo $(echo $f| cut -c1-40) > $(echo $f| cut -c42-) ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment