出現問題時
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