git开启两步认证后导致clone项目时报错

git开启两步认证后导致clone项目时报错

报错信息

remote: HTTP Basic: Access denied
remote: You must use a personal access token with ‘api’ scope for Git over HTTP.
remote: You can generate one at https://github.com/profile/personal_access_tokens

git开启两步认证后导致clone项目时报错

clone时密码用访问令牌替代