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

后端 未结 24 3335
囚心锁ツ
囚心锁ツ 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

    You can use credential helpers.

    git config --global credential.helper 'cache --timeout=x'
    

    where x is the number of seconds.

提交回复
热议问题