I'm working on bugs that will be integrated back into the original repo and a lot of the files do not have a newline at the end of the file.
Is there any way to make Git ignore this and allow me to make commits without that showing up?
I know with git diff you can do --ignore-space-at-eof
to hide that but how can I make this happen when I do a git add
?
The files need to be committed and pushed without adding a newline to the file as well as not have the commit show the need for a newline at the end.
I understand that there isn't a newline being added to the file but I need a way to suppress the warning message of 'no newline at end of file'