Does Git Bash determine identify by ssh key?

后端 未结 1 604
时光取名叫无心
时光取名叫无心 2021-01-26 08:23

It\'s going on day 3 and I have still not been able to resolve the following issue:

I originally created a GitHub account 2 years ago. I believe I generated an SSH key f

相关标签:
1条回答
  • 2021-01-26 09:07

    I think the key here is that you used HTTPS to clone the new repository.

    I suspect that your credentials are being cached by the credentials helper. See this:

    https://help.github.com/articles/caching-your-github-password-in-git/#platform-windows

    On windows, if you've used the wincred helper (git config --global credential.helper wincred), then this stores your credentials in the Windows credential store which has a Control Panel interface where you can delete or edit your stored credentials. See this for instance:

    With this store, your details are secured by your Windows login and can persist over multiple sessions. This was added in Git for Windows 1.8.1.1.

    So either:

    1. Try clearing the credential cache for your https cloned repo using the following and try again:

      git credential-osxkeychain erase host=github.com protocol=https

    OR,

    1. Edit the credentials using the Windows control panel's Credential Manager.
    0 讨论(0)
提交回复
热议问题