Created
September 13, 2011 11:07
-
-
Save luisfaceira/1213601 to your computer and use it in GitHub Desktop.
Oneliner to convert svn:ignore into .gitignore
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
svn propget -R svn:ignore | grep -v "^$" | awk '{print "mkdir " $1 " & echo \"" $3 "\" > " $1 "/.gitignore & svn add " $1 "/.gitignore"}' | /bin/sh |
Checkout https://gist.github.com/3450385
- Better regular expressions
- do not need create any other directories at all for .gitignore
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm pretty sure this can be improved with: