Fixing white space issues in GIT

I just found the command for cleaning up my changes before committing them into my GIT repo This will clean up all trailing spaces and make the spaces which are highlighted red when running git diff go away Just wanted to note it down somewhere