简体   繁体   English

Git塔和PhpStorm

[英]Git Tower and PhpStorm

For some reason in Git-Tower when I untick the checkbox next to a file in my working copy list it makes it untracked. 出于某种原因,当我在Git-Tower中取消选中工作副本列表中文件旁边的复选框时,该文件将被取消跟踪。

That's not what I'm wanting to do. 那不是我想要的。 If I uncheck it I just don't want it apart of the current commit I'm about to do. 如果我取消选中它,那么我只是不想将其与当前要做的工作分开。

I still want it to be tracked though. 我仍然希望对其进行跟踪。 Anyone know why this is happening? 有人知道为什么会这样吗? I'm also working in the current version of PhpStorm v10. 我还在使用PhpStorm v10的当前版本。

So after it makes the file in PhpStorm v10 red for the file name I have to make click it and make it added to Git so I'm trying to figure out how to just keep it tracked whole time during development. 因此,在使PhpStorm v10中的文件名变为红色后,我必须单击它并将其添加到Git中,因此我试图弄清楚如何在开发过程中始终对其进行跟踪。 It does it to all my project files. 它对我所有的项目文件都执行。

Email sent to me. 电子邮件已发送给我。

Roman Koellges (fournova) Jan 7, 10:31 Roman Koellges(fournova)1月7日,10:31

Thank you for your inquiry. 感谢您的查询。

From what you describe, I'm not sure if I find the "problem" or "bug" in the situation: it sounds as if new files have been created while you were working in PHPStorm - and Tower shows these new files when you switch over to it. 根据您的描述,我不确定在这种情况下是否找到“问题”或“错误”:听起来好像您在PHPStorm中工作时已创建了新文件-切换时Tower显示这些新文件结束了。 Are you aware that you can add them to Git right in Tower - simply by clicking the checkbox in the Status column? 您是否知道可以将它们添加到Tower中的Git中,只需单击“状态”列中的复选框即可? (See attached animated GIF.) (请参见随附的动画GIF。)

In case I misunderstood your request, here's another take: if you doubt that the "untracked" status for these files is correct, you can check the status simply with Git on the command line. 万一我误解了您的请求,请采取另一种措施:如果您怀疑这些文件的“未跟踪”状态正确,则可以在命令行上仅使用Git来检查状态。 A simple "git status", executed in Terminal.app from the root folder of the repository, should return the same files as untracked. 从存储库的根文件夹在Terminal.app中执行的简单“ git status”应返回与未跟踪相同的文件。

I hope this helps. 我希望这有帮助。 Let me know if you have any other questions. 如果您还有其他问题,请告诉我。

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). 查看git-Tower“阶段更改”文档 ,这应该只在文件中发生,而不是在先前版本化的文件中发生(您希望添加或不添加到其下一次提交的新更改)。

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. 首先检查将git-tower降级到较旧版本时问题是否仍然存在。 If that is the case, it is a bug, to be reported to git-tower support. 如果是这种情况,请向git-tower支持人员报告这是一个错误。

And check if this is coherent with a git status . 并检查这是否与git status一致。

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

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