Skip to content

Instantly share code, notes, and snippets.

@luisfaceira
Created September 13, 2011 11:07
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save luisfaceira/1213601 to your computer and use it in GitHub Desktop.
Save luisfaceira/1213601 to your computer and use it in GitHub Desktop.
Oneliner to convert svn:ignore into .gitignore
svn propget -R svn:ignore | grep -v "^$" | awk '{print "mkdir " $1 " & echo \"" $3 "\" > " $1 "/.gitignore & svn add " $1 "/.gitignore"}' | /bin/sh
@iegik
Copy link

iegik commented Aug 24, 2012

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