git config credential.helper store
但這動作是讓帳密儲存在 ~/.git-credentials,我也沒下 –global 咧
假如有第二組庫與帳號時,就會打架,訊息如下
fatal: repository 'https://git.xxxxxxxxxxxxx.git/' not found
所以要在個自的 .git/config 改成
[credential] helper = store --file ./.git/credentials
或一開始
git config credential.helper "store --file ./.git/credentials"
留言