github push的改版

1. 记录一次github 推送时的错误

错误如下:

remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.

原来是现在github推送的时候不是输入账号密码,而是推送账号和token

2. 获取token的方式

用户名:登录github的账号
token是在:settings --> Developer settings --> personal access tokens --> Generate new token --> 然后勾选所有 —> token刷新后就没了,注意保存
记得保存好token,不然刷新了就看不见了,要重新生成


版权声明:本文为Hallo_ween原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。