【git, idea】 GIT 地址变了, idea 右键annotate变成了灰色

发布时间 2023-07-28 10:07:49作者: aaacarrot

背景

如题,

git 地址变了,把地址改过来后,虽然可以继续 git pull , commit, push 等操作。
但是,idea 右键的 annotate 却变成了灰色

这个是正常的状态,是可以点击的。
image

但不正常时,这个是不出现,或者是置灰的。

解决方案

把 idea 项目下面的 iml 文件全部删掉,再把项目重新导入就行

递归删除语句: find ./ -name "*.iml" -print -exec rm -rf {} ;