Created
January 5, 2016 21:30
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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