git

Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

Posted by Vicky Luo on 2021-06-04
Estimated Reading Time 1 Minutes
Words 66 In Total
Viewed Times

git push错误

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

解决方案:

  1. 登录github → Settings → Developer settings → Personal access tokens → Generate new token
  2. 复制新生成的token(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),执行:
    1
    git remote set-url origin https://$new-token@github.com/$username/$repo-name.git
  3. 重新push即可

If the images or anything used in the blog infringe your copyright, please contact me to delete them. Thank you!