【linux重设gitee账号密码 克隆私有仓库报错】
出现问题时
Cloning into 'xxx'...
remote: [session-1f4b16a4] Unauthorized
fatal: Authentication failed for 'https://gitee.com/xxx/xxx.git/'
解决方案
- 先打开~/.git-credentials
vim ~/.git-credentials
或者创建一个 torch ~/.git-credentials
- 添加授权信息
username/password需要修改你自己的
然后按:`Esc + i`进入编辑模型
之后输入:`https://username:password@gitee.com`
最后关闭:先按`Esc`,然后输入`:wq`
- 使能生效
git config --global credential.helper store
- GOOD,恭喜可以自由的clone 私有repo~~~
git clone https://xxx