Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Question Mark after file names when renaming - how to purge from Xcode? [duplicate]

Tags:

git

xcode

rename

So I added a bunch of images to my project that has git enabled. I then renamed all the images in Xcode. Now whenever I select commit, these files with the old file name pop up with a question mark. The question mark indicates they are not under source control, I believe, which is fine. They should not be. So how can I get them out of the list? How can I avoid this from happening in the future, other than renaming outside of the project before importing?

Note: I did not check them in or commit them before renaming. At least I don't think I committed them. They are not in the remote, nor do I want them to be.

like image 476
Victor Engel Avatar asked Oct 22 '22 09:10

Victor Engel


1 Answers

Untracked files can be removed with git clean. Use git clean -n to preview which files will be removed and git clean -f to remove them.

like image 172
Matt Jennings Avatar answered Nov 03 '22 06:11

Matt Jennings