Skip to content

Instantly share code, notes, and snippets.

View hpchrist's full-sized avatar

Hanspeter Christ hpchrist

View GitHub Profile

Keybase proof

I hereby claim:

  • I am hpchrist on github.
  • I am hpchrist (https://keybase.io/hpchrist) on keybase.
  • I have a public key ASBoI-QUIFNqn6wLdsL8ZC0nDsN4dSTDE0WQ-ELYDzwDNwo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am hpchrist on github.
  • I am hpchrist (https://keybase.io/hpchrist) on keybase.
  • I have a public key whose fingerprint is 499B F491 D51D C159 C212 AF20 C0F4 2EB8 390E 22AB

To claim this, I am signing this object:

@hpchrist
hpchrist / fix_github_https_repo.sh
Created December 23, 2015 13:52 — forked from m14t/fix_github_https_repo.sh
Convert HTTPS github clones to use SSH
#/bin/bash
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password
REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'`
if [ -z "$REPO_URL" ]; then
echo "-- ERROR: Could not identify Repo url."
echo " It is possible this repo is already using SSH instead of HTTPS."
exit
fi