本文介绍了Sourcetree 2.1.2.5 - 显示“未提交的更改”但没有任何待定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,我以前没有经历过。尽管我没有提交任何内容,并尝试将我的分支重置为最新提交,但Sourcetree显示未提交更改





根据Atlassian论坛,通常有两个原因:


  1. 您的工作目录中有许多非暂存文件,
    被列在SourceTree中。这会导致Git / Hg在所有文件中花费相当长的时间
    ,因此SourceTree会在Git / Hg上等待
    的报告。 - 尝试重置硬盘,以便任何更改应该已被恢复。如果我编辑一个文件,它会显示在Sourcetree中。

  2. 您的系统规格不太准确。真的,你
    需要大约20GB的可用磁盘空间,还有一些体面的内存支持你
    。 - 154GB可用硬盘空间。 8GB RAM免费。

这是一个错误(几乎4个月后仍然没有解决)。

解决方法是禁用LibGit2集成。

工具 - >选项 - > Git - >并勾选禁用LibGit2集成复选框该标签。

重新启动Sourcetree和幻影提交消失。


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:

  1. You have many, many unstaged files in your working directory thatget listed in SourceTree. This causes Git/Hg to take quite some timegoing through all the files, and so SourceTree waits on Git/Hg toreport 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 youneed about 20GB free disk space, and some decent memory backing youup. - 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

解决方案

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.

这篇关于Sourcetree 2.1.2.5 - 显示“未提交的更改”但没有任何待定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 04:42