Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disassociate working copy of an Xcode 5 project from SVN server that died

Tags:

git

xcode

svn

I have a modified working copy of an Xcode 5 project that was checked out from a remote svn server that is no longer available. How can I remove the working copy's svn association and have it not be under source control? (Eventually I want to create a git repository based on the working copy and push modifications to it.) I don't need to retain the svn history.

I've tried the obvious things to disassociate the svn server from the project (such as deleting the .svn directories in the working copy as well as doing a grep -r search on the svn server's name through all the files in the working copy directory tree), but the project remains associated with the svn server. I'd prefer to do this switch directly with the working copy, rather than risking trying to create an empty "working copy" that is not associated with the svn server and then transferring files one-by-one from the current copy. Tools like svn-git aren't feasible as both the svn server isn't available and my working copy contains significant modifications. Help...?

like image 311
StillAtWork Avatar asked Dec 30 '13 19:12

StillAtWork


1 Answers

I was facing a similar problem just now, I have moved my git from github to gitLabs. However that means the previous repo information is still in my project.

So what I discovered was when I have added my gitLab repo into Xcode, SourceTree showed that one file was modified. Surprise, this is the file that keep records of all your Working Copies servers.

Just navigate to "Your Project".xcodeproj > (Right Click & Show Package Contents) > project.xcworkspace > (Right Click & Show Package Contents) > xcSharedData > "Your Project".xccheckout

Right Click on the file and select Open with, and click on "More..". Use your preferred Text Editor to edit the XML inside, or you can always use the trusty TextEdit.

Your old git/svn servers are probably at the bottom, encased in <dict></dict>. Just remove em and reload your project in Xcode.

like image 162
wahkiz Avatar answered Oct 19 '22 16:10

wahkiz