错误1:
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
解决办法:
原因是本地存了一个失效的账户密码, 使用管理员身份打开terminal
git config --system --unset credential.helper
如何设置免密码登录
- 打开git bash,
vi .git-credentials
- 输入将账号密码输入
https://{username}:{access_token}@github.com
# 此处的username是你的账号, password是access_token
最后
git config --global credential.helper store
保存即可。