A (proof-of-concept level) script to store encrypted git credentials on a per-shell basis. Requires python 3, pycrypto, bash, and linux or OSX.
-
Put
git-credential-shell
in your path -
Add to your bash login script of choice:
eval $(git-credential-shell setup)
-
Configure git to use the script as a helper. Either:
git config --global credential.helper shell
to have it work for all your user's repositories, or
git config --local credential.helper shell
to install it only for the current repository.