1. git-ignore(1)
  2. Git Extras
  3. git-ignore(1)

NAME

git-ignore - Add .gitignore patterns

SYNOPSIS

git-ignore [<pattern>...]

DESCRIPTION

Adds the given _pattern_s to a gitignore file.

OPTIONS

EXAMPLES

To lazy to open up .gitignore? me too! simply pass some patterns:

$ git ignore build "*.o" "*.log"
... added 'build'
  ... added '*.o'
... added '*.log'

Running git-ignore without a pattern will display the current patterns:

$ git ignore
build
*.o
*.log 

AUTHOR

Written by Tj Holowaychuk <tj@vision-media.ca>

REPORTING BUGS

<http://github.com/visionmedia/git-extras/issues>

SEE ALSO

<http://github.com/visionmedia/git-extras>

  1. March 2011
  2. git-ignore(1)