Skip to content

Instantly share code, notes, and snippets.

@netaustin
Created August 2, 2012 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netaustin/3237216 to your computer and use it in GitHub Desktop.
Save netaustin/3237216 to your computer and use it in GitHub Desktop.
Bash Script to add .svn/tmp directories to Git
basedir=$1
for dir in $(find . -name "$basedir" -type d); do
touch "$dir/.gitignore";
git add "$dir";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment