mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
14 lines
200 B
Bash
Executable file
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
|