Prevent whitespace changes to repo

mythicalcity April 22, 2020

Is there a way to ignore whitespace changes in sourcetree? I don't mean in the diff view but in the actual unstaged files, so we don't commit those into the repo. For some reason these show up when there have been no whitespace changes made. Could be from opening the project in a different OS like Mac (but reopening it in windows shows no changes).

1 answer

0 votes
Paweł Gumiela February 18, 2021

@mythicalcity 

Late to the party, but you can try to Stage All and then Unstage All files. Once done, all the whitespace changes should be removed from Unstaged files.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events