Closed brshallo closed 2 years ago
What eventually worked was doing:
credentials::set_github_pat("my_pat")
And specifying my PAT when prompted for my password both in the github and then rstudio pop-up login screens.
What is your git version?
$ git --version
git version 2.21.0.windows.1
Which credential help do you use? E.g. what is the output of
gitcreds::gitcreds_list_helpers()
Can you try listing all your credentials?
gitcreds::gitcreds_list()
(This needs the oskeyring R package.)
You can also start the 'Credential Manager' Windows app and check whether you indeed have many stale credentials here.
Finally, if you can, you can also update your git version, starting from git 2.29.0, git includes the manager-core
credential helper, which is the usually the preferred one nowadays.
> gitcreds::gitcreds_list_helpers()
[1] "manager"
> gitcreds::gitcreds_list()
[[1]]
<oskeyring_windows_item: generic>
target_name: git:https://github.com
persist: local_machine
username: PersonalAccessToken
credential_blob: <-- hidden -->
My Credential Manager has some git credentials for other git platforms (other than github, e.g. for dev.azure.com but just the one for github).
I'll look into updating my version of git soon.
(Feel free to close issue -- as mentioned had gotten working with {credentials}.)
I recently updated my PAT due to previously using an outdated format (had put off update for a bit).
I'm now having trouble connecting to github. When I do
gitcreds_set()
it shows everything as "dummy" values and selecting "2: Replace these credentials" is unable to progress and just keeps asking me the same thing:and so on...