Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 450
Ogglas Avatar asked Jul 06 '17 06:07

Ogglas


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.

like image 186
JumpingJezza Avatar answered Oct 20 '22 07:10

JumpingJezza


There is currently an open bug in SourceTree for this very issue.
SRCTREEWIN-7112

like image 32
jblopez Avatar answered Oct 20 '22 07:10

jblopez