How can/should one place an Xcode 5 workspace under (git) version control?
For this I would normally expect to right-click on the in Xcode's Project Navigator and then select Source Control
| Add Selected Files
. But the workspace folder does not show up there (nor does it apparently in the Source Control
menu). Besides, my workspace folders sit next to (not above) the project folders in the filesystem.
So do I have to/should I do version control for the workspace folder on the command line (i.e. outside Xcode), or can Xcode help me (also) in this regard?
My exact version of Xcode is 5.0.2. And here is an abstract view into my file system:
WORKSPACE.xcworkspace/
PROJECT_A/.git (as already managed by Xcode)
PROJECT_A/.gitignore
PROJECT_A/PROJECT_A/
PROJECT_A/PROJECT_A.xcodeproj/
PROJECT_A/PROJECT_ATests/
PROJECT_B/.git (as already managed by Xcode)
PROJECT_A/.gitignore
PROJECT_B/PROJECT_B/
PROJECT_B/PROJECT_B.xcodeproj/
PROJECT_B/PROJECT_BTests/
The .gitignore
files are currently one-liners:
.DS_Store