All the files are showing up as needing to be staged.

I created a new branch from dev and all the files are showing up as needing to be staged.  I searched around and this apparently has to do with some CRLF setting?

In my .gitconfig file (C:\users\myself\.gitconfig) I have the lines

text = auto
autocrlf = true

As per what I saw I created a .gitattributes file in this same folder and that has the line

# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto


 Not knowing what I am doing I also created the same file with same contents in the root folder of the git project (the one that has the .git subfolder)

 None of this seems to help.

"git status" command works correctly and shows only the files needing to be staged.

I'd like to use sourcetree, so could you please help? 

5 answers

If "git status" is showing the right stuff, then something strange is happening, and it probably isn't a line-ending issue.

What version of SourceTree do you have installed?

I have the exact same issue, all files shown as "Unstaged". But using git cmd line, everything is actually staged.

 

my env:

win 10, sourcetree 1.8.3

falling back to 1.6.14 seems to be working

I had the wrong setting.

image2016-7-8 9:7:15.png

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

274 views 0 3
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot