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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

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...

393 views 0 1
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