Eclipse Egit 和 GitHub 身份验证弃用

Tob*_*bia 6 eclipse https github token egit

我正在使用 Eclipse (Egit) 和 GitHub,我收到此通知:

Hi,

You recently used a password to access the repository with git using JGit/5.10.0.202012080955-r.

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.
Run Code Online (Sandbox Code Playgroud)

目前我正在使用带有用户和密码的 HTTPS 连接,可能我必须切换到 HTTPS 令牌,但是如何为 HTTPS 令牌配置 Eclipse/Egit?

小智 9

Github 不赞成使用您的个人帐户密码进行身份验证。您将需要在 Eclipse 中更改您的 git 凭据以使用个人访问令牌而不是使用您的 Github 帐户密码。

用于创建个人访问令牌的链接

用于在 Eclipse 中更改凭据的链接