Git无法识别新的.h,.m和.xib文件

时间:2018-05-10 07:26:40

标签: objective-c xcode git atlassian-sourcetree

我们有一个客观的c项目,它一直运行良好,突然无法识别任何新添加的.h .m或.xib文件。但是,如果我添加新的.metal文件,它将正常工作....

这是我们做的测试

我们在项目中添加了TestNewViewController和File.metal We added TestNewViewController and File.metal inside our project

但是在源代码树中我找不到TestNewViewController的新文件记录 But inside the source tree I cannot find the new file record for TestNewViewController

我们可以在project.pbxproj文件中找到此更新 We could find this update in project.pbxproj file

我们也可以在Finder中找到这些文件 And also we could find these files inside Finder

此项目正在几个不同的Mac Book Pro中开发。只有一台计算机出现此问题。

此问题的问题在于,只要有问题的计算机提交涉及新文件的任何更改,其他计算机就无法从云中检索这些新文件。因为有问题的计算机永远不会将这些新文件推送到云端.....

2 个答案:

答案 0 :(得分:0)

这些文件很可能被git忽略了。使用git check-ignore命令调试gitignore / exclude文件。

git check-ignore <path_to_missing_file>

答案 1 :(得分:0)

使用此命令查看.gitignore中是否有任何文件格式

git check-ignore -v your_files_path

其中-v提供了更多详细信息(verbose).

相关问题