Textmate 2 Alpha 显示已删除文件的引用 [英] Textmate 2 Alpha showing references for deleted files
问题描述
我知道这是一个 Alpha 产品,但我认为这是一个设置而不是一个错误.当我使用 textmate 文件管理器删除文件时,该文件被删除但保留在项目中,并带有红色X".见下图.
I know it's an Alpha product, but I think this is a setting rather than a bug. When I delete files from with textmate file manager, the file is deleted but remains in the project with a red 'X' through it. See the image below.
我已经检查了文件系统,但它不存在,并且还提交了 git 并将更改推送到我的 github 存储库.
I have checked on the file system and it is not there, and have also git commited and pushed the changes to my github repo.
有什么想法吗?
编辑
交叉发布到 Textmate 邮件列表.至今没有答案.http://textmate.1073791.n5.nabble.com/Textmate-2-Alpha-and-deleting-files-td26669.html
Cross-posted to the Textmate mailing list. No answers so far. http://textmate.1073791.n5.nabble.com/Textmate-2-Alpha-and-deleting-files-td26669.html
解决方案
根据 danodonovan 的建议,我调查了 git 问题.结果 git status 显示了文件,最终它们被提交了.
As per danodonovan's suggestion, I looked into the git issues. Turns out git status showed the files up, and eventually they were commited.
这不起作用:
$ git add .
$ git commit -m "message"
$ git push origin master
这确实有效:
$ git commit -a -m "message"
$ git push origin master
我认为 -a -m 是第一组命令的同义词.在任何情况下,问题都解决了,不是 Textmate 问题,而是未提交的删除,这是有道理的.感谢 danodonovan.
I thought -a -m was synonymous for the first set of commands. In any case the problem is solved and was not a Textmate issue but rather uncommited deletions, which makes sense. Thank you to danodonovan.
推荐答案
这些文件是否显示
$ git status
?正如您发现的那样,您要么必须单独提交已删除的文件,要么使用
? As you've found out you'll either have to commit the removed files individually or use
$ git commit -a -m "comment"
:-)
这篇关于Textmate 2 Alpha 显示已删除文件的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!