Git - Xcode files are scheduled for Deletion in Project Navigator 'D'

吃可爱长大的小学妹 提交于 2019-12-14 03:45:33

问题


I was implementing some feature using Core Data, when I added a xcdatamodeld file, all my Xcode's files in the project navigator become with a 'D' icon. When I deleted the xcdatamodeld file, some files change their symbol to '?'.

I did some research and I found that 'D' means that the item/file is scheduled for Deletion. When I tried to see the git status using the terminal, all my project files was deleted.

Someone please can help me to commit my project without losing my Xcode files ?

Any help would be appreciated :)

PS: I'm using Xcode version 9.0 beta 4, and Bitbucket server.

Here is a screenshot of my project navigator:

And here is a screenshot of my terminal:


回答1:


To unstage deleting a file use git reset HEAD filename.ext from the command line.



来源:https://stackoverflow.com/questions/46036175/git-xcode-files-are-scheduled-for-deletion-in-project-navigator-d

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!