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

Anand Mahadevan June 9, 2016

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

0 votes
Anand Mahadevan July 8, 2016

I had the wrong setting.

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

0 votes
jinhuizhu July 7, 2016

falling back to 1.6.14 seems to be working

0 votes
jinhuizhu July 7, 2016

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

0 votes
Anand Mahadevan June 9, 2016

1.8.3.0

0 votes
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 9, 2016

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?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events