the Reverend
the Reverend

Reputation: 12559

Xcode 7 / Git - Working with Workspaces

How do you work with Xcode workspaces in git? Until now, I've successfully added several projects to a workspace with each individual project having its own git. Each project then gets pushed to the remote server (github).

Works great, but the problem comes when checking out the entire workspace. I need to check out each project individually, making sure they have the same relative paths as they had on the original computer that made the push. Its tricky and prone to errors.

Is there another way?

Upvotes: 1

Views: 480

Answers (1)

Reza Shayestehpour
Reza Shayestehpour

Reputation: 1703

Having faced the same problem myself, I used git submodules for the projects I wanted to add them to the main project.

Adding submodules:

$git submodule add https://github.com/chaconinc/DbConnector
$git submodule init
$git submodule update

you can update to changes on your remote server:

$git submodules update --remote

more info Here

Upvotes: 1

Related Questions