Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Sourcetree white spaces between every letter

in some files in my project, white spaces are added everywhere in the diff preview.

I suspect it breaks my commits.

Someone has a clue on how to fix it?


1 answer

1 accepted

1 vote
Answer accepted
Mike Corsaro Atlassian Team May 15, 2019

Hello! This is probably due to a text-encoding error (note the small 'CR' characters -- those are depreciated mac OS classic line-endings).


Could you check the file encoding and line-ending settings used for those files?


Additionally, if you run `git diff FILE_NAME` in the terminal does the result also look like that for the file?

The bad files encoding was UCS-2 LE BOM in contrast to all other files encoding which is UTF-8 BOM.

changing the encoding didn't help.

when I run "git diff FILE_NAME" after changing the file encoding I see a lot of gibberish letters in red (basicaly the entire file) and afterwards the entire file, now readable, in green letters.

eventually, the solution was to change the encoding of the files to utf-8.

Thanks! :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

3,270 views 19 18
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you