Reputation: 238
I have created a new repository in Github, set up the readme.md/.gitignore etc and cloned it to my Mac at user/project
.
If when creating the project in Xcode I select user/project
as the folder the project is created in user/project/project
.
If when creating the project in Xcode I select user
as the folder the project is created in user/project
, however the folder has been overwritten, losing the link to Github and existing files. I am also unable to clone the git repository in to this new folder.
Is it possible to create a new Xcode project in a folder under version control?
Upvotes: 1
Views: 178
Reputation: 299623
Not really in a convenient way. Generally the easiest way to get what you want is to create the project outside of git (without creating a new repo), and then just move everything into the git directories. (That said, 90% of time I forget to do that and just make inside the git directory and then rearrange things.)
Upvotes: 1