Updates .gitconfig and adds a new bash function to remove trailing whitespaces for all files in a directory recursively