Skip to content

Instantly share code, notes, and snippets.

@samueldr
Created January 20, 2018 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueldr/d6116b0f0b15007fd4954e6999a270d7 to your computer and use it in GitHub Desktop.
Save samueldr/d6116b0f0b15007fd4954e6999a270d7 to your computer and use it in GitHub Desktop.
IGNORING FILES
By default, ag will ignore files whose names
match patterns in .gitignore, .hgignore, or
.ignore. These files can be anywhere in the
directories being searched. Binary files are
ignored by default as well. Finally, ag looks in
$HOME/.agignore for ignore patterns.
If you want to ignore .gitignore and .hgignore,
but still take .ignore into account, use -U.
Use the -t option to search all text files; -a to
search all files; and -u to search all, including
hidden files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment