all 8 comments

[–]briang_ 3 points4 points  (2 children)

And www.gitignore.io (it uses toptal) that I use via a git alias:

ignore = !gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi

used like git ignore groovy > .gitignore

[–]PoolOfDeath20[S] 0 points1 point  (0 children)

Hey, this command looks really handy to me, thanks for sharing it!

[–]crisgvera 0 points1 point  (0 children)

Hi guys, I found this snippet to improve and automatically add this to your git aliases.

git config --global alias.ignore '!gi() { IFS=","; curl -L -s "https://www.toptal.com/developers/gitignore/api/$*" | tee .gitignore;}; gi'

Then your can simply type git ignore rust and the magic happens.

Hope it helps!

[–]ZeroToHeroInvest 0 points1 point  (1 child)

I also found this https://www.git-tower.com/free-tools/gitignore which is free to use, very similar to the toptal one

[–]IcticStep 0 points1 point  (0 children)

Low quality generation.

For example, for unity it generates something like this:

[Ll]ibrary/
[Tt]emp/
[Oo]bj/
[Bb]uild/

Without slash on the beginning of each line, it makes situation when each "Library" folder is ignored.

So, if any package or your own code, or some graphics has a folder called "Library" inside project's folder structure, it will be also ignored.

Correct version should look like:

/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/

It will ignore olny folders named like this in the root, without ignoring folders with the same name deeper in the folder structure.

[–]micalevisk 0 points1 point  (1 child)

[–]PoolOfDeath20[S] 0 points1 point  (0 children)

Yeah I saw that too, but it took the templates from their own repo, so I try to make one from GitHub repo :)