如何更新 Rstudio 上的 GitHub 身份验证令牌以匹配新策略?
How to update GitHub authentification token on Rstudio to match the new policy?
昨天在向 GitHub 推送提交时,我收到了来自 GitHub 团队的电子邮件:
Basic authentication using a password to Git is deprecated and will soon no longer work. Visit https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information around suggested workarounds and removal dates.
Thanks,
The GitHub Team
帮助页面我一个字都看不懂...
几个月前,当他们首次宣布更改身份验证时,我确实创建了一个更安全的访问令牌,并将其输入到我的 mac 的终端中。我以为就这样了。我的问题是:如何更新在令牌不需要匹配新访问令牌策略时创建的 Rstudio 会话?
在此先感谢您的帮助,
罗莎莉
我不知道如何验证上面用户@r2evans 的评论,但确实有效!
我已经有一个 PAT 令牌集,所以我按照 https://happygitwithr.com/credential-caching.html#credential-caching 中的步骤操作,从 10.2.1.1
开始
install.packages("gitcreds")
library(gitcreds)
gitcreds_set()
我必须输入我的帐号密码(电脑密码),然后它会显示我当前的身份识别参数。
在控制台中,出现三个选项:
1: Keep these credentials
2: Replace these credentials
3: See the password / token
Select 2 替换 password/token(凭据),瞧!
感谢 @r2evans 的简单修复。
@r2evans 这很有帮助!
对于此线程的未来访问者,运行 gitcreds_set()
将在 Rstudio 中提示一个对话框,询问您要如何处理您以前现有的 user/password 凭据。
1: Keep these credentials
2: Replace these credentials
3: See the password / token
通过选择 2,我用 Github 上的现有 token that I already created 替换了我的凭据。它运行顺畅!
上述解决方案对我不起作用。我必须使用:
credentials::set_github_pat("my_pat")
然后当 pop-up 框提示时,我必须使用我的 PAT 作为我的密码。
昨天在向 GitHub 推送提交时,我收到了来自 GitHub 团队的电子邮件:
Basic authentication using a password to Git is deprecated and will soon no longer work. Visit https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information around suggested workarounds and removal dates.
Thanks, The GitHub Team
帮助页面我一个字都看不懂... 几个月前,当他们首次宣布更改身份验证时,我确实创建了一个更安全的访问令牌,并将其输入到我的 mac 的终端中。我以为就这样了。我的问题是:如何更新在令牌不需要匹配新访问令牌策略时创建的 Rstudio 会话?
在此先感谢您的帮助,
罗莎莉
我不知道如何验证上面用户@r2evans 的评论,但确实有效! 我已经有一个 PAT 令牌集,所以我按照 https://happygitwithr.com/credential-caching.html#credential-caching 中的步骤操作,从 10.2.1.1
开始install.packages("gitcreds")
library(gitcreds)
gitcreds_set()
我必须输入我的帐号密码(电脑密码),然后它会显示我当前的身份识别参数。 在控制台中,出现三个选项:
1: Keep these credentials
2: Replace these credentials
3: See the password / token
Select 2 替换 password/token(凭据),瞧!
感谢 @r2evans 的简单修复。
@r2evans 这很有帮助!
对于此线程的未来访问者,运行 gitcreds_set()
将在 Rstudio 中提示一个对话框,询问您要如何处理您以前现有的 user/password 凭据。
1: Keep these credentials
2: Replace these credentials
3: See the password / token
通过选择 2,我用 Github 上的现有 token that I already created 替换了我的凭据。它运行顺畅!
上述解决方案对我不起作用。我必须使用:
credentials::set_github_pat("my_pat")
然后当 pop-up 框提示时,我必须使用我的 PAT 作为我的密码。