1. After enabling 2FA two-factor authentication, git.exe pull –progress -v –no-rebase “origin”
remote: HTTP Basic: Access denied
remote: You must use a personal access token with ‘read_repository’ or ‘write_repository’ scope for Git over HTTP.
remote: You can generate one at https://xxx.com/-/profile/personal_access_tokens
fatal: Authentication failed for ‘https://xxx.com/xgrit/object.git/’
git did not exit cleanly (exit code 1) (5344 ms @ 2022/6/29 10:42:11). See Figure 1

2. Open: https://xxx.com/-/profile/personal_access_tokens to generate a personal access token. See Figure 2

3. Pull again, and the Git Credential Manager login box pops up. The same error is still reported. See Figure 3

4. Reset the remote repository address by adding: oauth2:{personal_access_token}@. See Figure 4

5. The pull succeeds and the error no longer occurs.
