Is there a way to securely let git remember my credentials when connecting to remote repositories over HTTP(S)?
I’ve tried the core.askpass approach detailed in git-config to let an external script supply my credentials. Although it works great the username and password is still stored in plain text in the small shell script.
gitinvokes cURL when running over HTTP. You can store secure credentials by setting up a.netrcfile in your user’s home directory, and making it private to the user (0600 in Linux).The contents of the file provide the username and password per remote domain.
See https://stackoverflow.com/questions/3947530/git-push-fatal-failed/7177690#7177690 for full server side configuration, which can easily include calls to your ldap server.