For me, the problem was caused by the fact that I had previously created a project with the same name, and Xcode was still recording this.
To clean it,
- go to the window β Organizer in the menu bar
- Delete all repositories highlighted in red
To add your repository (if it is not being tracked for any reason),
- Click the + button (still in the window β Organizer using the steps above)
- Enter file path
- Be sure to change to Git from Subversion (if Xcode is set to Subversion as the default, that was for me.
I usually get this error if I initialize the Xcode project with a Git repository, delete it and try to recreate it with the same name (the doens't shell seems to make it quite βdifferentβ). It turns out, "Well, I'll just get started," may leave some problems.
Hope this helps.
austenallred
source share