Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Shell: Convert .svnignore to .gitignore & viceversa
#!/bin/bash
cat .gitignore | sed 's/^/\.\//g;s/\(.*\)\/\([0-9a-zA-Z\*\?\.]*\)$/svn propedit svn:ignore "\2" \1 /mg' | bash
#!/bin/bash
svn propget -R svn:ignore | grep -v "^$" | sed "s/\(\(.*\) - \)\(.*\)/\2\/\3/g" | sort >> .gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment