在IDEA的界面上是没有这个功能的,需要修改配置文件,配置文件目录可以参看官网介绍。笔者的OS X系统上,配置在 ~/Library/Preferences/IdeaIC2017.3/options/vcs.xml ,vcs.xml内容类似这样:
<application>
<component name="GitRememberedInputs">
<option name="visitedUrls">
<list>
<UrlAndUserName>
<option name="url" value="https://github.com/fengjiachun/Jupiter.git" />
<option name="userName" value="" />
</UrlAndUserName>
</list>
</option>
<option name="cloneParentDir" value="$USER_HOME$/git" />
</component>
<component name="Vcs.Log.App.Settings">
<option name="MIGRATED" value="true" />
</component>
</application>
把多余的 <UrlAndUserName> 标签删除,再重启一次IDEA再看看,干净了很多。
IDEA中清理Git历史记录
本文介绍如何在IntelliJ IDEA中手动清除Git的历史URL记录。通过编辑配置文件vcs.xml来移除不需要的Git仓库地址,从而实现对IDEA界面显示的优化。
1158

被折叠的 条评论
为什么被折叠?



