Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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:

enter image description here

And here is a screenshot of my terminal:

enter image description here

like image 856
Sana ABID Avatar asked Sep 04 '17 11:09

Sana ABID


1 Answers

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

like image 158
jcuk Avatar answered Nov 13 '22 19:11

jcuk