You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何消除PyCharm某仓库中反复弹出的git.heroku.com登录窗口?

彻底消除PyCharm中git.heroku.com登录弹窗的方法

方法1:移除仓库中的Heroku远程地址

打开PyCharm终端,先查看当前远程仓库列表:

git remote -v

如果输出里有包含git.heroku.com的远程条目(一般名为heroku),执行命令删除该远程:

git remote remove heroku

方法2:清除PyCharm存储的Heroku凭据

  • 打开PyCharm,进入File > Settings(Windows/Linux)或PyCharm > Settings(Mac)
  • 在设置面板中找到Appearance & Behavior > System Settings > Passwords
  • 在密码存储列表里找到和git.heroku.com相关的条目,选中后删除
  • 重启PyCharm即可生效

方法3:清理Git全局配置中的Heroku相关项

打开终端执行命令查看全局Git配置:

git config --global --list

如果找到带有heroku的配置项(比如remote.heroku.url),用以下命令删除:

git config --global --unset remote.heroku.url

其他相关配置项也可以用同样的--unset命令清理。

方法4:清理Heroku CLI残留配置(若曾安装过)

如果之前装过Heroku CLI,先执行注销命令:

heroku logout

然后找到本地的.netrc配置文件:

  • Windows:C:\Users\[你的用户名]\.netrc
  • Mac/Linux:~/.netrc
    打开文件删除所有包含heroku.com的条目后保存。

内容的提问来源于stack exchange,提问作者Nikarun

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.09 11:10:40