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

后端 未结 5 902
醉梦人生
醉梦人生 2021-01-12 08:54

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

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


        
5条回答
  •  一整个雨季
    2021-01-12 09:39

    Faced the same problem in Xcode 4.6.1 after moving my folder and xcodeproj file. Here's what works for me:

    1. Delete corresponding repository in Organizer
    2. Close Xcode
    3. Delete the original .git directory
    4. git init in the new directory where you placed the folder and xcodeproj file, and do an initial commit
    5. Start Xcode

提交回复
热议问题