git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git credential cache and sudo
@ 2021-03-12 16:43 John Ratliff
  2021-03-12 20:29 ` Jeff King
  0 siblings, 1 reply; 5+ messages in thread
From: John Ratliff @ 2021-03-12 16:43 UTC (permalink / raw)
  To: git

When I do sudo git pull, git does not know about my credential cache.

On some servers, when I do a sudo -E git pull, it can find my
credential cache and use it. On other servers, I think the sudo
configuration is stripping the environment, so this doesn't work and I
still have to enter my git credentials.

What environment variables do I need to configure sudo to preserve to
make sudo -E git pull work with my credential cache? Or is there
something else I can pass to git or define to get it to use my
credential cache?

Thanks.

--John

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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-12 16:43 git credential cache and sudo John Ratliff
2021-03-12 20:29 ` Jeff King
2021-03-13  2:51   ` Jonathan Nieder
2021-03-15 17:24     ` John Ratliff
2021-03-15 18:56     ` Jeff King

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).