WebStorm JetBrains IDE 使用错误的 GitHub 帐户推送代码,给我一个 403 forbidden 错误
WebStorm JetBrains IDE using wrong GitHub account to push code, giving me a 403 forbidden error
我正在尝试将我的代码从 WebStorm IDE 推送到 GitHub。它一直给我
remote: Permission to dagu-games/dagu.git denied to [USERNAME].
fatal: unable to access 'https://dagu-games@github.com/dagu-games/dagu.git/':
The requested URL returned error: 403
作为错误,其中 [USERNAME]
是我必须在某个时候登录过的未使用的旧用户。
当我在我的 PC 上搜索或查看任何配置文件时,我无法在任何地方找到对此用户的引用。
我检查了本地配置文件和全局 .gitconfig
文件,没有任何地方提到 [USERNAME]
。
我已经添加了拥有 GitHub 存储库的用户,所以它肯定有权限。
我还让 IDE 登录到正确的用户,并将其设置为默认帐户。
基本上看起来我在任何地方都登录了正确的帐户,并且在任何地方都没有旧帐户的踪迹,但是当我去推送我的代码时,它出错说我正在尝试使用这个旧用户名进行操作.
有没有我没看到但我仍然登录的地方?
Is there some place I'm not looking that has me still logged in?
可能是您的 git 凭据助手,它可能缓存了与 URL 关联的错误 user/credentials。
git config credential helper
在 Windows, for instance, you can :
git credential-manager reject https://github.com/dagu-games/dagu.git
我正在尝试将我的代码从 WebStorm IDE 推送到 GitHub。它一直给我
remote: Permission to dagu-games/dagu.git denied to [USERNAME].
fatal: unable to access 'https://dagu-games@github.com/dagu-games/dagu.git/':
The requested URL returned error: 403
作为错误,其中 [USERNAME]
是我必须在某个时候登录过的未使用的旧用户。
当我在我的 PC 上搜索或查看任何配置文件时,我无法在任何地方找到对此用户的引用。
我检查了本地配置文件和全局 .gitconfig
文件,没有任何地方提到 [USERNAME]
。
我已经添加了拥有 GitHub 存储库的用户,所以它肯定有权限。
我还让 IDE 登录到正确的用户,并将其设置为默认帐户。
基本上看起来我在任何地方都登录了正确的帐户,并且在任何地方都没有旧帐户的踪迹,但是当我去推送我的代码时,它出错说我正在尝试使用这个旧用户名进行操作.
有没有我没看到但我仍然登录的地方?
Is there some place I'm not looking that has me still logged in?
可能是您的 git 凭据助手,它可能缓存了与 URL 关联的错误 user/credentials。
git config credential helper
在 Windows, for instance, you can
git credential-manager reject https://github.com/dagu-games/dagu.git