As a good practice netbeans should add new line character at the end of file
currently it adds just line without new line
steps to reproduce
0) create a new file
1) right click on the file
2) go to git -> ignore ->ignore
3) open .gitignore file. the file has not the new line at the end of the file.
- links to