tj.git-extras/bin/git-touch
2023-01-20 18:17:49 +08:00

14 lines
200 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