github在8月13日更新以后,原先的ssh认证和https认证都失败了,只能添加token认证。
settings->developer settings ->personal access tokens-generate new token
记住token值
git remote -v查看remote分支
https://github.com/yorkiiz/yorkiiz.github.io.git
将remote分支改成
https://oauth2:token值@github.com/yorkiiz/yorkiiz.github.io.git
比如
https://oauth2:123456@github.com/yorkiiz/yorkiiz.github.io.git
git remote rm origin git remote add origin https://oauth2:123456@github.com/yorkiiz/yorkiiz.github.io.git
然后就ok了