小编Ken*_*der的帖子

如何长时间设置 git cache --timeout ?

这里Git推送需要用户名和密码我读到如何在命令行中运行git命令时向/从github推送/拉取时不输入登录名/密码。

我发现下一个:

git config --global credential.helper 'cache --timeout 7200'
Run Code Online (Sandbox Code Playgroud)

启用凭据缓存后,将缓存 7200 秒(2 小时)。

我认为 2 小时太小,并尝试使用命令设置大约 200 小时:

git config --global credential.helper 'cache --timeout 7200000'
Run Code Online (Sandbox Code Playgroud)

我的本地服务器和远程服务器上都有 Ubuntu 18。

但是当我第二天运行 github 时(我想已经过去了 10-12 个小时),它不起作用。

此缓存选项是否有一些时间限制或者有什么问题?

谢谢!

git github

6
推荐指数
1
解决办法
6698
查看次数

标签 统计

git ×1

github ×1