mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
11 lines
172 B
Bash
Executable file
11 lines
172 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
test $# -lt 1 && echo "filename required" 1>&2 && exit 1
|
|
|
|
filenames="$@"
|
|
|
|
for filename in $@; do
|
|
touch "$filename" \
|
|
&& git add "$filename"
|
|
done
|