Skip to content

Instantly share code, notes, and snippets.

@iegik
Forked from luisfaceira/converter.sh
Last active November 6, 2021 05:23
Show Gist options
  • Star 31 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save iegik/3450385 to your computer and use it in GitHub Desktop.
Save iegik/3450385 to your computer and use it in GitHub Desktop.
Oneliner to convert svn:ignore into .gitignore
#!/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 -u >> .gitignore
@iegik
Copy link
Author

iegik commented Mar 19, 2020

@r-eis I have no suggestions, but You may research this question and advise some changes.
This script was created for one reason - to not do a lot by hands :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment