git password

Joshua Root jmr at macports.org
Sat Oct 21 03:10:51 UTC 2017


On 2017-10-21 08:00 , Craig Treleaven wrote:
> Hi:
> 
> Lately, I have to enter my github username and password every time I commit; git used to just remember these.  I suppose it is in a hidden config file somewhere but I don’t know where.
> 
> Could some kind soul please give me directions in suitably small words for someone of limited git understanding?  ;)

You want git installed with the credential_osxkeychain variant, which is 
default. Then you want this in your git config:

[credential]
	helper = osxkeychain

Then it should Just Work (at most you might get a Keychain unlock dialog).

- Josh


More information about the macports-dev mailing list