问题
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
.
According to the Atlassian forums there is usually two reasons:
- 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.
- 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
回答1:
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.
回答2:
There is currently an open bug in SourceTree for this very issue.
SRCTREEWIN-7112
来源:https://stackoverflow.com/questions/44940990/sourcetree-2-1-2-5-shows-uncommitted-changes-yet-nothing-is-pending