Skip to content

Instantly share code, notes, and snippets.

@shouhei
Last active August 22, 2017 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shouhei/49c393e55a63c6ef46e8c09413515b55 to your computer and use it in GitHub Desktop.
Save shouhei/49c393e55a63c6ef46e8c09413515b55 to your computer and use it in GitHub Desktop.
git-credential-env
#!/bin/bash
if [ $# -ne 1 ] || [ "${1,,}" != "get" ];
then
exit 0
fi
echo "protocol=${GIT_PROTOCOL}"
echo "host=${GIT_REMOTE_HOST}"
echo "username=${GIT_USER}"
echo "password=${GIT_PASSWORD}"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment