iosgitxcode4

Error : Fatal: Not a git repository (or any of the parent directories): .git


When I try to put images into the Resources folder of my project, I get this message:

fatal: Not a git repository (or any of the parent directories): .git

How can I fix it?


Solution

  • Had the same problem. I copied a project then tried to delete files.

    If you want to be able to edit the project, type git init folder in the terminal. This will re-initialize the git in your folder.