Skip to content

Instantly share code, notes, and snippets.

@larsxschneider
Last active March 25, 2016 17:55
Show Gist options
  • Select an option

  • Save larsxschneider/405a381ecf475dd63aa3 to your computer and use it in GitHub Desktop.

Select an option

Save larsxschneider/405a381ecf475dd63aa3 to your computer and use it in GitHub Desktop.
Print Git HTTPS credentials stored with the credentials helper
#!/usr/bin/env bash
printf "protocol=https\nhost=github.com\n\n" | git credential-$(git config credential.helper) get
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment