1.修改某个具体项目中的用户名密码 vim xx/{yourProject dir }/.git/.git-credentials 在.git-credentials文件中配置用户名密码 https://用户名:密码 2.修改全局的用户名密码 vim ~/.git-credentials 在.git-credentials文件中配置用户名密码 https://用户名:密码 3.修改git保存用户名和密码 git config credential.helper store
今年 8 月 13 日之后,如果你还用账户密码来操作 Github 上的仓库,就会收到如下警告: remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requiremen