Sourcetree 2.1.2.5 - Shows "Uncommitted changes" yet nothing is pending

Viewed 3226

I have a problem that I have not been experienced before. Even though I have nothing to commit and have tried to reset my branch to the latest commit Sourcetree shows Uncommitted changes.

enter image description here

According to the Atlassian forums there is usually two reasons:

  1. You have many, many unstaged files in your working directory that get listed in SourceTree. This causes Git/Hg to take quite some time going through all the files, and so SourceTree waits on Git/Hg to report back. - Tried hard reset so any changed should have been reverted. If I edit one file it shows up in Sourcetree.
  2. Your system specifications aren't quite up to scratch. Really you need about 20GB free disk space, and some decent memory backing you up. - 154GB free HDD space. 8GB ram free.

https://community.atlassian.com/t5/SourceTree-questions/quot-Uncommitted-changes-quot-yet-nothing-is-pending/qaq-p/94549

2 Answers

As mentioned in jblopez's answer this is a bug (still unresolved almost 4 months later).

The workaround is to disable LibGit2 integration.
Tools -> Options -> Git -> and tick the Disable LibGit2 integration checkbox down the bottom of the tab.
Restart Sourcetree and the phantom commits disappear.

Related