1

I was dragging some files from an Xcode project to a new Xcode project. Then I notice on the new Xcode project. There're now 2 source controls listed, one from the first Xcode project. The delete keyword is greyed when I right click on it.

https://imgur.com/27vn6Xq

How do I remove the git reference from the first Xcode project?

2 Answers 2

2

Weird af. All I had to do was move the new Xcode project to any other folder. Then the extra working copy reference disappears.

Sign up to request clarification or add additional context in comments.

Comments

0

Check if you have dragged also a .git subfolder: that would explain the second repo being "created/visible" after your file move operation.

Removing that extra .git subfolder in your second directory (the one created by the move) should be enough to resolve the situation.

3 Comments

I only see 1 .git folder that belongs to the new project. I can't find anything related to previous Xcode
@TyrantBoy Yes: you should see only one .git for the new project. Maybe you ca n try and close XCode, move your original project elsewhere (with its nested .git folder) ,reopen XCode.
@TyrantBoy is the delete option which is grayed the one you see in sunzala.com/2017/10/27/use-github-xcode-9-0 (search for "delete" in that page)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.