Search code examples
idebitbucketrubymine

white space added on one line and removed on the next line in the same git commit


This is a really annoying random issue. What cause this? Is there a way I can prevent it?

Photo From Bitbucket

I see that Bitbucket has an ignore whitespace option but it seems like that just encourages a sloppy whitespace free-for-all on a team.


Solution

  • there are actually spaces being saved there which is evident from the different green shade.