问题
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.
回答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.
来源:https://stackoverflow.com/questions/36617471/clearing-history-list-of-repositories-in-xcode