1

出于某种原因,在 Git-Tower 中,当我取消选中工作副本列表中文件旁边的复选框时,它会使其无法跟踪。

那不是我想做的。如果我取消选中它,我只是不希望它与我即将执行的当前提交分开。

我仍然希望它被跟踪。有谁知道为什么会这样?我也在使用当前版本的 PhpStorm v10。

因此,在将 PhpStorm v10 中的文件变为红色文件名之后,我必须单击它并将其添加到 Git 中,因此我试图弄清楚如何在开发过程中始终对其进行跟踪。它对我的所有项目文件都执行此操作。

发给我的电子邮件。

Roman Koellges (fournova) Jan 7, 10:31

感谢您的查询。

根据您的描述,我不确定是否在这种情况下找到“问题”或“错误”:听起来好像您在 PHPStorm 中工作时创建了新文件 - 并且 Tower 在您切换时显示这些新文件结束它。您是否知道您可以直接在 Tower 中将它们添加到 Git - 只需单击“状态”列中的复选框?(见附件动画 GIF。)

万一我误解了您的要求,这里有另一种看法:如果您怀疑这些文件的“未跟踪”状态是否正确,您可以在命令行上使用 Git 简单地检查状态。一个简单的“git status”,在存储库根文件夹的 Terminal.app 中执行,应该返回与未跟踪的文件相同的文件。

我希望这有帮助。如果您还有其他问题,请告诉我。

4

1 回答 1

1

Looking at the "Staging Changes" documentation of git-Tower, this should only happen to new files, not to files that were previously versioned (and whose new changes you wish to add or not add to your next commit).

http://www.git-tower.com/help/content/01-mac/04-working-copy/03-stage-changes/modified-list.png

Check first if the issue persists when downgrading git-tower to an older version. If that is the case, it is a bug, to be reported to git-tower support.

And check if this is coherent with a git status.

于 2016-01-06T05:36:30.847 回答