git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git credential cache timeout questions
@ 2021-02-19 15:46 John Ratliff
  2021-02-19 17:04 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: John Ratliff @ 2021-02-19 15:46 UTC (permalink / raw)
  To: git

I have configured my git to cache my credentials for 12 hours using
this section in my .gitconfig

[credential "https://mygithub.example.edu"]
    username = myuser
    helper = cache --timeout 43200

However, the credentials don’t always seem to expire after 12 hours.
Sometimes I come back the next morning and the credentials still work.
This is generally after leaving at 5:00 PM and coming back in the next
day at 9:00 AM, well past the 12 hour timeout.

Is there any way to see the current timeout value? Is it a rolling
timeout (i.e. any git action resets the timeout)?

If it happened once or twice, I would assume I just forgot that I did
something with git later than I thought. But this happens frequently
enough that it’s difficult to accept that as a possibility. It’s not a
daily occurrence. My credentials do expire…I just have no idea when
they will.

Have I setup my gitconfig section wrong?

CentOS 7. Git 2.24.3.

Thanks.


--John

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-10 15:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-19 15:46 git credential cache timeout questions John Ratliff
2021-02-19 17:04 ` Jeff King
2021-03-10 15:41   ` John Ratliff

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).