SaosinHax
SaosinHax

Reputation: 9

How make github to ignore whitespaces/newlines

I'm running a team of developers on a project and I constantly see this kind of commits:

img

Whenever I get about 5000 lines of code like this, i get quite frustrated

Is there any way to make github not show added whitespaces/newlines?

Upvotes: 1

Views: 371

Answers (1)

René Link
René Link

Reputation: 51483

Set the URL parameter w=1 in the github url which enables the ignore whitepsace feature

Take a look at the difference between

https://github.com/renelink/..../9491a0ed3ae57f7b33386605d3f62f85eca8ae05

and

https://github.com/renelink/..../9491a0ed3ae57f7b33386605d3f62f85eca8ae05?w=1


But I guess the main problem is that the developers work on different OS and do not configure core.autocrlf.

Upvotes: 2

Related Questions