All of lore.kernel.org
 help / color / mirror / Atom feed
* Clear an invalid password out of the credential-cache?
@ 2014-04-12 13:12 Jason Pyeron
  2014-04-14 22:15 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Pyeron @ 2014-04-12 13:12 UTC (permalink / raw)
  To: 'Git List'

Is it me or is the only way to clear a single invalid password out of the
credential-cache is by "git credential-cache exit"?

-Jason

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

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

* Re: Clear an invalid password out of the credential-cache?
  2014-04-12 13:12 Clear an invalid password out of the credential-cache? Jason Pyeron
@ 2014-04-14 22:15 ` Jeff King
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2014-04-14 22:15 UTC (permalink / raw)
  To: Jason Pyeron; +Cc: 'Git List'

On Sat, Apr 12, 2014 at 09:12:57AM -0400, Jason Pyeron wrote:

> Is it me or is the only way to clear a single invalid password out of the
> credential-cache is by "git credential-cache exit"?

Try the "reject" action:

  $ : remember a credential
  $ url() { echo url=https://example.com; }
  $ (url; echo username=me; echo password=foo) | git credential-cache store

  $ : get it again
  $ url | git credential-cache get
  username=me
  password=foo

  $ : forget it
  $ url | git credential-cache erase

  $ : now produces nothing
  $ url | git credential-cache get

Git should do this for you automatically if it tries to use the password
and gets rejected (but only if the rejection is a password rejection,
like an HTTP 401).

-Peff

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

end of thread, other threads:[~2014-04-14 22:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-12 13:12 Clear an invalid password out of the credential-cache? Jason Pyeron
2014-04-14 22:15 ` Jeff King

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.