I think we all understand that the poster actually means GitHub rather than Git. Personally, I think that cleaning up your code before putting it on Github is a good thing — after all, Harold Abelson put it best:
Programs must be written for people to read, and only incidentally for machines to execute.