diff --git a/Readme.md b/Readme.md index 36bc467..ad2501a 100644 --- a/Readme.md +++ b/Readme.md @@ -50,4 +50,13 @@ - Commits changes (to changelog etc) with message "Release <tag>" - Tags with the given <tag> - - Pushes the branch / tags \ No newline at end of file + - 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' diff --git a/bin/git-ignore b/bin/git-ignore index 015b4a9..b2d6d09 100755 --- a/bin/git-ignore +++ b/bin/git-ignore @@ -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 \ No newline at end of file