mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
11 lines
191 B
Bash
Executable file
11 lines
191 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if test $# -eq 0; then
|
|
test -f .gitignore && cat .gitignore
|
|
else
|
|
for pattern in $@; do
|
|
echo "... adding '$pattern' to .gitignore"
|
|
echo $pattern >> .gitignore
|
|
done
|
|
fi
|