Hardroid
Hardroid

Reputation: 51

How to remove remote git urls from xcode?

I have created a git repository but have deleted the repository, so there is nothing to clone from that repository, which means I want to remove these URLs.

How do I remove git remote URLs from XCode > SourceControl > Checkout?

https://i.sstatic.net/HXK6W.png

Upvotes: 2

Views: 1561

Answers (4)

Ofir Malachi
Ofir Malachi

Reputation: 1286

  1. Xcode -> File -> Add Packages

enter image description here

  1. Recently Used -> Right Click -> Remove.

enter image description here

Upvotes: 0

Larry Ricker
Larry Ricker

Reputation: 319

In xCode 11.6 you can open your project, locate the repository tab on the left margin. Identify the remote connection that you want to delete. Look at the description in the right tab under it's repository tab and verify that it is the correct remote URL for deletion. Right click on the repository and delete the repository.enter image description here

enter image description here

enter image description here

Upvotes: 1

Hardik Amal
Hardik Amal

Reputation: 1353

In your terminal hit below command to clear the xcode preferences

defaults delete com.apple.dt.Xcode

Haven't tested, may be this may help you.

Upvotes: 1

VonC
VonC

Reputation: 1329572

Check if you can find a .xcheckouts file which would include those urls for you to remove.
See "xcode remove repository from project".
As mentioned here, an .xccheckout file contains metadata about what repositories are used in a workspace.

In latest versions of XCode (7), check for a xcode preference file in /Library/Preferences (as in this thread)

Upvotes: 1

Related Questions