Docs for git-ignore. Closes #3

This commit is contained in:
Tj Holowaychuk 2010-08-05 07:41:42 -07:00
parent 398e84be9b
commit e36ef2fcb4
2 changed files with 11 additions and 2 deletions

View file

@ -50,4 +50,13 @@
- Commits changes (to changelog etc) with message "Release <tag>"
- Tags with the given <tag>
- Pushes the branch / tags
- Pushes the branch / tags
## git-ignore
To lazy to open up _.gitignore_? me too! simply pass some patterns:
$ git ignore build "*.o" "*.log"
... added 'build'
... added '*.o'
... added '*.log'

View file

@ -4,7 +4,7 @@ if test $# -eq 0; then
echo "arguments required" && exit 1
else
for pattern in $@; do
echo "... adding '$pattern' to .gitignore"
echo $pattern >> .gitignore
echo "... added '$pattern'"
done
fi