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

后端 未结 24 3382
囚心锁ツ
囚心锁ツ 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条回答
  •  闹比i
    闹比i (楼主)
    2020-11-21 05:28

    On a GNU/Linux setup, a ~/.netrc works quite well too:

    $ cat ~/.netrc
    machine github.com login lot105 password howsyafather
    

    It might depend on which network libraries Git is using for HTTPS transport.

提交回复
热议问题