Thanks Taher and Mathieu for trying to somehow help ;)

As those were not real answers to my question and I got some time to spend I 
looked for a Git solution

Actually I already use the ignore-on-commit ToirtoiseGit solution for my other specific added files (mostly *.bat shortcuts): https://tortoisegit.org/docs/tortoisegit/tgit-dug-changelists.html. I use it for years in ToirtoiseSvn, Toirtoise* tools are terrific :)

But it's not satisfying for .gitignore, because I don't want to ignore .gitignore but to prevent  ToirtoiseGit to put /gradle/ in it (why it does that is still a mystery to me, must be a reason...)

So I discovered[1][2] .git/info/exclude and I guess it's OK with me (still have 
to try)

[1] 
https://medium.com/@dave_lunny/exclude-files-from-git-without-committing-changes-to-gitignore-986fa712e78d
[2] 
https://stackoverflow.com/questions/5765645/should-you-commit-gitignore-into-the-git-repos

Jacques

Le 11/11/2019 à 13:48, Jacques Le Roux a écrit :
Hi,

As you may know I'm mostly on Windows and I use ToirtoiseGit to handle things, 
and in a lesser way Git Bash and eGit (Eclipse plugin).

There is something which is annoying me with ToirtoiseGit. I don't know why but it keeps 
adding "/gradle/" in .gitignore.

I want to push it, but before I'd like your opinions.

Thanks

Jacques


Reply via email to