msfeldstein / gitignore

NPM package to automatically fetch gitignore files from github
MIT License
191 stars 12 forks source link

Global gitignore types not available #13

Open leepowelldev opened 7 years ago

leepowelldev commented 7 years ago

https://github.com/github/gitignore/tree/master/Global

Handy utility. Would be great to have access to subdirectories too such as Global.

Semmu commented 3 years ago

just found this project and faced the same issue.

it can actually handle global gitignores, but it does not list them with the -types flag, unfortunately.

spacecat commented 2 years ago

just found this project and faced the same issue.

it can actually handle global gitignores, but it does not list them with the -types flag, unfortunately.

@Semmu How?

I tried with the regular URI and with the Raw URI but couldn't get it to work.

Semmu commented 2 years ago

@spacecat just prepend Global/ or others

e.g. instead of:

$ npx gitignore macOS
There is no gitignore for MacOS
Available project types can be found by running `gitignore -types` or at https://github.com/github/gitignore
Recieved status code 404

type:

$ npx gitignore Global/macOS
Created .gitignore file for type Global/macOS :)
spacecat commented 1 year ago

Cool @Semmu will try it next time :)

Edit: Tried it and it works beautifully! :)