Is there a way to cache GitHub credentials for pushing commits?

后端 未结 24 3943
囚心锁ツ
囚心锁ツ 2020-11-21 05:02

I recently switched to synchronizing my repositories to https:// on GitHub (due to firewall issues), and it asks for a password every time.

Is there a way to cache t

24条回答
  •  耶瑟儿~
    2020-11-21 05:15

    Use a credential store.

    For Git 2.11+ on OS X and Linux, use Git's built in credential store:

    git config --global credential.helper libsecret
    

    For msysgit 1.7.9+ on Windows:

    git config --global credential.helper wincred
    

    For Git 1.7.9+ on OS X use:

    git config --global credential.helper osxkeychain
    

提交回复
热议问题