Skip to content

Instantly share code, notes, and snippets.

Created December 24, 2012 12:33
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 anonymous/92a07fbe1f00ae9b5169 to your computer and use it in GitHub Desktop.
Save anonymous/92a07fbe1f00ae9b5169 to your computer and use it in GitHub Desktop.
> cat .gitignore
*.jar
!/lib/*.jar
!/withjars/*/*/*.jar
> git status
# [...]
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .gitignore
# lib/a.jar
# lib/b.jar
# withjars/a/b/abc.jar
# withjars/b/c/def.jar
> find -name '*.jar'
./x.jar
./foo/y.jar
./lib/a.jar
./lib/b.jar
./withjars/a/b/abc.jar
./withjars/b/c/def.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment