Quote:
Originally Posted by dfcarvalho
I have an Xcode 4 project that I've been working on for a while. For version control I was using the local git repository that Xcode creates when you create a new project, but now I have to use a remote svn repository instead.
I have added the new repo in the Organizer and I imported the project into it, but I can't find the option (in Xcode 4) to commit changes to the new SVN repo instead of the old local git repo. When I go to File > Source Control > Commit, it tries to commit to the local git repo. I have even tried to delete the old repo (creating a backup beforehand), but then it just says "can't find (null) repository" or something of the sort.
I tried importing the project into the new repo both using the command-line tool (svn import) and the Import icon in the Organizer, neither of these seem to make Xcode understand that the new repo contains that project and that new commits should also go to that repo.
Any ideas how to commit changes to the new repo using Xcode?
Thanks in advance.
|
Xcode gets very confused if you have both Git and SVN files in a project folder. In order to set up an Xcode project with Git under SVN, you need to first delete the .git directory from the root level of the project folder. I suggest backing up first, then deleting the .git folder from your project, and THEN adding the project to your remove SVN repository.
Git uses a slightly different sequence to post changes to a remote server. With git, you have both a local Git repository AND a remote Git repo. You first commit your changes to the local repo, then "push" those changes up to the remote server. On the flip side, you "pull" changes from the server and it updates your project directly.