Dee*_*kor 16 git git-submodules
我在我的iOS应用程序上使用Twitter的Fabric.
Fabric中的Crashlytics刚刚更新了,现在我无法将我的项目提交给git.我收到错误:
git错误:无法索引文件
Crashlytics.framework/Headers致命:更新文件失败

知道出了什么问题或如何修复它?
跑步git status揭示:
Untracked files:
(use "git add <file>..." to include in what will be committed)
Crashlytics.framework/Info.plist
Fabric.framework/Info.plist
profile.xcodeproj/project.xcworkspace/xcuserdata/
profile.xcodeproj/xcuserdata/
Run Code Online (Sandbox Code Playgroud)
Dee*_*kor 26
进入终端并手动提交git解决了这个问题.我在xcode中的所有进一步提交都起了作用.
git add .
git commit -m "message"
Run Code Online (Sandbox Code Playgroud)
我认为这与git子模块有关,因为我有类似的问题.但是添加或删除它没有帮助.有效的是将其重置为HEAD版本,例如
git reset HEAD problematic_file_or_dir
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
13033 次 |
| 最近记录: |