gitignore icon indicating copy to clipboard operation
gitignore copied to clipboard

Global gitignore types not available

Open leepowelldev opened this issue 8 years ago • 4 comments

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

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

leepowelldev avatar May 03 '17 10:05 leepowelldev

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 avatar Mar 19 '21 23:03 Semmu

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.

spacecat avatar Aug 27 '22 13:08 spacecat

@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 :)

Semmu avatar Sep 15 '22 13:09 Semmu

Cool @Semmu will try it next time :)

Edit: Tried it and it works beautifully! :)

spacecat avatar Feb 03 '23 13:02 spacecat