Method1
git用戶
sudo git clone https://“你的用戶名”:你的密碼@github.com/balabala…
或者找到倉庫,進入.config,修改
紅色標記的地方。
github用戶
Settings => Developer Settings => Personal access tokens
申請專屬token。
Method2
用git證書。
$ git config credential.helper store
OR
$ git config --global credential.helper store
配置後,以後每次clone git會寫證書到~/.git-credentials這個文件。