git error: unable to index file Crashlytics.framework/Headers

前端 未结 4 1524
暖寄归人
暖寄归人 2021-02-02 13:15

I am using Twitter\'s Fabric on my iOS app.

Crashlytics in Fabric just updated itself and now I cannot commit my project to git. I get the error:

4条回答
  •  爱一瞬间的悲伤
    2021-02-02 13:45

    This happened to me with IntelliJ IDEA. An error popup appeared when I tried to commit with the IDE git plugin. Probably this is related to the fact that I had staged a path that was previously a file but now is a directory, and have that previous file moved to the new directory.

    Suppose that path is bin/yii. What I did was:

    • Rename the directory to something different, e.g. bin/yii-temp
    • Commit the directory and its contents
    • Rename the directory back to bin/yii
    • Commit with --amend what I had just committed.

提交回复
热议问题