Unstaged files appearing on newly cloned bitbucket repo?

Hi New here and fairly new to sourcetree.

I have an issue with cloning a site from bitbucket.

Steps I have taken so far are:

  1. Cloned the sit with git via cygwin on to my local machine.
  2. I have been granted access to the repo on bitbucket and used sourcetree to clone the repo.

Everything has come across ok. I have made absolutely no changes to any of the files that have been cloned but I am seeing a large amount of unstaged files in my working copies. As I say this is literally a brand new clone so any ideas why I am seeing unstaged files that I have not changed at all?

2 answers

I've also seen this if the files in question originally contained weird characters in their names that the local OS is having difficulty with - including filenames ending in a period when cloned to Windows or filenames that differ from each other only by case when cloned to Windows or (depending on your system settings) Macs.

Chances are that your OS changed the line endings, and git is not set to ignore them.


Another possibility is that file permissions were modified.

If you click on an unstaged file in SourceTree, it should show you the differences, if it can. Make sure you check "Show whitespace changes" in the dropdown above the diff. A permission diff is displayed, but it's hard to notice. Binary files can't be diffed with sourcetree.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

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

647 views 0 4
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