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

This widget could not be displayed.

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?

This widget could not be displayed.

1.8.3.0

This widget could not be displayed.

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

This widget could not be displayed.

falling back to 1.6.14 seems to be working

This widget could not be displayed.

I had the wrong setting.

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

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

718 views 1 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