Issue
I guess this is asked and answered many times - but I wasn't able to find any of it - so if you know some solution feel free to point it out.
Topic: I recently started using NetBeans (11.2) and its Git plugin to sync some Java projects with GitHub. As I also use some private data (access tokesn, private keys) I selected to ignore them via the context menu. However, after pushing my commit I often see that .gitignore is missing the new line at its end. For me I don't care, although I'd like some "clean" github repo log. So, as I don't want to add the missing new line every time I ignored some file (sometimes netbeans decides on its own to add some files or folders to the ignore list) is there a way to tell NetBeans to please add a new line at the end of .gitignore?
//edit: I also tried to contact NetBeans team directly - but try to send to [email protected] only returns this error (tried from multiple differnt mail services): 550 5.7.1 Relaying denied So I guess this mail address is either wrong or at least wrongly configured.
//edit2: As mentioned by answer this issue seem to exists since end of April 2011 and may have a chance to get pulled for next release. Personal side note: I'm surprised this wasn't addressed until now.
Solution
It's a trivial bug. Added PR for that, you can see the changes. I think it would be fixed in 12.1.
Another solution could be adding a pre-commit hook but not sure it would work with jgit.
UPDATED: It was fixed in 12.0
Answered By - Dmitry.M
Answer Checked By - Senaida (JavaFixing Volunteer)