tj.git-extras/bin/git-touch
2015-12-28 14:07:09 -05:00

14 lines
198 B
Bash
Executable file

#!/usr/bin/env bash
USAGE(){
echo "git touch <filename> [ <filename> . . .]" 1>&2
exit 1
}
test $# -lt 1 && USAGE
for filename in $@; do
touch "$filename" \
&& git add "$filename"
done