From e36ef2fcb4874312839b93a9940ccd397ab4f7b3 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Thu, 5 Aug 2010 07:41:42 -0700 Subject: [PATCH] Docs for git-ignore. Closes #3 --- Readme.md | 11 ++++++++++- bin/git-ignore | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) 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