更新本地 github 帐户信息
update local github account information
无法从我的本地终端提交到我的新 github 帐户存储库。
remote: Permission to <new-account-name>/22c.git denied to <old-account-name>.
我已经更新了全局 'git config' 设置`
git config --list
揭示以下内容:
credential.helper=osxkeychain
core.editor=/usr/bin/vim
core.autocrlf=input
user.name=<new-account-name>
user.email=<new-email>
push.default=simple
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
core.precomposeunicode=true
remote.origin.url=https://github.com/<new-account-name>/22c.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
感谢您的帮助,如果还有什么可以帮助解决问题的,请告诉我
请注意,user.name=<new-account-name>
与 GitHub 的身份验证无关,因为 <new-account-name>
:它只是与提交相关联的作者身份。
您的凭据可能缓存在您的 git credential helper osxkeychain 中:您需要在那里更新它们。
参见“Updating credentials from the OSX Keychain”。在命令行中:
git credential-osxkeychain erase
host=github.com
protocol=https
[Press Return]
If it's successful, nothing will print out.
To test that it works, try and clone a repository from GitHub. If you are prompted for a username/password, the keychain entry was deleted.
在“How do you reset the stored credentials in git credential-osxkeychain?”查看更多内容。
问题出在我的 osxkeychain 上。单击 here 以获得详细记录的解决方案。
无法从我的本地终端提交到我的新 github 帐户存储库。
remote: Permission to <new-account-name>/22c.git denied to <old-account-name>.
我已经更新了全局 'git config' 设置`
git config --list
揭示以下内容:
credential.helper=osxkeychain
core.editor=/usr/bin/vim
core.autocrlf=input
user.name=<new-account-name>
user.email=<new-email>
push.default=simple
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
core.precomposeunicode=true
remote.origin.url=https://github.com/<new-account-name>/22c.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
感谢您的帮助,如果还有什么可以帮助解决问题的,请告诉我
请注意,user.name=<new-account-name>
与 GitHub 的身份验证无关,因为 <new-account-name>
:它只是与提交相关联的作者身份。
您的凭据可能缓存在您的 git credential helper osxkeychain 中:您需要在那里更新它们。
参见“Updating credentials from the OSX Keychain”。在命令行中:
git credential-osxkeychain erase
host=github.com
protocol=https
[Press Return]
If it's successful, nothing will print out.
To test that it works, try and clone a repository from GitHub. If you are prompted for a username/password, the keychain entry was deleted.
在“How do you reset the stored credentials in git credential-osxkeychain?”查看更多内容。
问题出在我的 osxkeychain 上。单击 here 以获得详细记录的解决方案。