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"
Related posts 相關文章
最近要小心 GitHub 上的 POC 庫,可能是惡意程式
More...
下載 GitHub 上某個目錄
More...
不要在瀏覽器上自動儲存自己的密碼,已有人被駭
More...
gitlab 出現 cannot unblock ldap blocked users 問題
More...

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。