mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Docs for git-ignore. Closes #3
This commit is contained in:
parent
398e84be9b
commit
e36ef2fcb4
11
Readme.md
11
Readme.md
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in a new issue