我目前正在使用SourceTree和Git作为我的版本控制工具,我只有两个活跃的项目,我正在使用它。
然而,当我去XCode - >源控制 - >签出,我看到一个存储库列表,我已删除或不属于我(因为很多人发送给我他们的项目进行审查)。我已经搜索了我的整个机器以获取这些值但尚未找到它们。以下是我的Check Out窗口的截图:
我还仔细检查了我的偏好设置 - >帐户,以确保只有我想要的两个。
我只想保持底部两个并删除其余部分。这个专长有可能吗?提前谢谢。
答案 0 :(得分:1)
After days of searching my entire machine for these values, thanks to one tip from this answer:
How to remove remote git urls from xcode?
With some ideas from the answer posted in that qustion, I managed to solve without deleting the whole file and losing all my data/preferences.
It seems that you will need to find com.apple.dt.XCode.plist
located in your Library/Preferences
directory.
Search for IDESourceControlRecentsFavoritesRepositoriesUserDefaultsKey
and there should be a list of items under that key. Unwanted repositories can be deleted from it and it will be reflected the next time XCode is restarted.
Just thought I would leave this here for those who wants to keep their XCode preferences uncluttered.