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

MT
MCDock Team MCDock team · MCDock · 8 h ago

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