]> scripts.mit.edu Git - wizard.git/blob - bin/wipe-working-dir
Move a number of common parameters to the baton.
[wizard.git] / bin / wipe-working-dir
1 #!/bin/bash -e
2 if [[ "$1" = "" ]]
3 then
4     echo "Usage: $0 dir"
5     echo "Takes a git working copy and removes all its files"
6     exit 1
7 fi
8 cd $1
9 find . -not -path "./.git/*" -not -path "./.git" -delete
10 cd ..