Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative patterns in .gitignore make all files ignored #115

Closed
julien-f opened this issue Apr 15, 2015 · 4 comments

Comments

@julien-f
Copy link

commented Apr 15, 2015

It works with any negative patterns, the one who matches nothing !* and the one who matches anything !inexisting.

@feross

This comment has been minimized.

Copy link
Member

commented Apr 16, 2015

Can you give an example of a .gitignore you're trying to use?

@matthewmueller

This comment has been minimized.

Copy link

commented Apr 20, 2015

Just ran into this. Probably a better way to write this but here's what I had.

!*/db
db

Ignore /db, but don't ignore say, /lib/db.

@julien-f

This comment has been minimized.

Copy link
Author

commented Apr 20, 2015

@matthewmueller you can simply write /db which ignore the db entry in the directory where the .gitignore is.

@feross I can show you a trivial example but any valid gitignore should be correctly interpreted.

dist/*
!dist/.keepme
@feross

This comment has been minimized.

Copy link
Member

commented Apr 21, 2015

standard@3.7.0 removed support for .gitignore until we can make it work more reliably.

Flet added a commit to Flet/standard that referenced this issue Oct 23, 2015

@lock lock bot locked as resolved and limited conversation to collaborators May 11, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
3 participants
You can’t perform that action at this time.