在XCode中清除存储库的历史记录列表 [英] Clearing history list of repositories in XCode

查看:746
本文介绍了在XCode中清除存储库的历史记录列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前使用SourceTree和Git作为我的版本控制工具,而我只有两个活动项目正在使用它。



然而,当我走到XCode - >源代码管理 - >签出,我看到了一个我已经删除或不属于我的存储库列表(因为相当多的人向我发送他们的项目供审查)。我已经搜索了我的整个机器以获取这些值,但尚未找到它们。以下是我的Check Out窗口的截图:





我还在我的首选项 - >帐户中进行了双重检查,以确保只有我想要的两个存在。



我只想保留底部两个,然后删除剩下的部分。这项壮举可能吗?

解决方案

经过几天搜索我的整个机器的这些值,感谢这个答案的一个提示: / p>

如何从xcode中删除远程git url?



从这个问题中发布的答案中得到一些想法,我设法解决而不删除整个文件并失去我所有的数据/偏好。



看起来您需要找到 com.apple.dt.XCode.plist 位于 Library / Preferences 目录。



搜索 IDESourceControlRecentsFavoritesRepositoriesUserDefaultsKey 是该密钥下的项目列表。不需要的存储库可以从中删除,并且它会在下一次重新启动XCode时反映出来。



只是觉得我会在这里留给那些想要保持XCode首选项不变的人。


I am currently using SourceTree and Git for as my versioning tools and I only have two active projects that I am working on with it.

However, when I go to XCode -> Source Control -> Check Out, I see a list of repositories which I have either deleted or do not belong to me (since quite a number of people sent me their projects for review). I have searched my entire machine to for these values but have yet to find them. Here is a screenshot of how my Check Out window looks like:

I have also double checked on my Preferences -> Account to make sure only the two which I want are there.

I just want to keep the bottom two and remove the rest. Is this feat possible at all? Thank you in advance.

解决方案

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.

这篇关于在XCode中清除存储库的历史记录列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆