登录
ZH▾
语言
下载
测试版 此语言为测试版:由 AI 翻译和检查,尚未经过母语人士审校。

FAQ: Git keeps asking for my password after I turned on two-factor sign-in

MT
MCDock Team MCDock 团队 · MCDock · 4 天前

With two-factor sign-in, Git can't type a code for you, so it needs a personal access token instead of your password.

  1. In MCDock, open Account → Security → Personal access tokens → New. Give it a name and an expiry date.
  2. Copy the token, which is shown once only.
  3. On the next git pull, use your user name and paste the token as the password. Git Credential Manager remembers it.

If a PC is lost or stolen, revoke its token on the same page.

▲ 0

登录 或 创建免费账户 后即可回复。