The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Prevent whitespace changes to repo

mythicalcity
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Paweł Gumiela
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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.

TAGS
AUG Leaders

Atlassian Community Events