简体   繁体   English

Sourcetree 2.1.2.5 - 显示“未提交的更改”但尚未处理任何内容

[英]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 . 即使我没有任何提交,并试图将我的分支重置为最新的提交Sourcetree显示Uncommitted changes

在此输入图像描述

According to the Atlassian forums there is usually two reasons: 根据Atlassian论坛,通常有两个原因:

  1. You have many, many unstaged files in your working directory that get listed in SourceTree. 您在工作目录中有许多非托管文件,这些文件在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. 这会导致Git / Hg花费相当长的时间浏览所有文件,因此SourceTree会等待Git / Hg报告。 - Tried hard reset so any changed should have been reverted. - 尝试硬重置,以便应该还原任何更改。 If I edit one file it shows up in Sourcetree. 如果我编辑一个文件,它将显示在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. 真的,你需要大约20GB的可用磁盘空间,还有一些体面的内存支持你。 - 154GB free HDD space. - 154GB免费硬盘空间。 8GB ram free. 8GB内存免费。

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

As mentioned in jblopez's answer this is a bug (still unresolved almost 4 months later). 正如jblopez的回答中提到的,这是一个错误(差不多4个月后仍未解决)。

The workaround is to disable LibGit2 integration. 解决方法是禁用LibGit2集成。
Tools -> Options -> Git -> and tick the Disable LibGit2 integration checkbox down the bottom of the tab. 工具 - >选项 - > Git - >并勾选选项卡底部的Disable LibGit2 integration复选框。
Restart Sourcetree and the phantom commits disappear. 重新启动Sourcetree,幻像提交消失。

There is currently an open bug in SourceTree for this very issue. SourceTree目前存在一个针对此问题的漏洞。
SRCTREEWIN-7112 SRCTREEWIN-7112

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM