Skip to content

Instantly share code, notes, and snippets.

@deanputney
Created July 20, 2020 00:56
Show Gist options
  • Save deanputney/6a463618a4040f5ce4a73d67750bff55 to your computer and use it in GitHub Desktop.
Save deanputney/6a463618a4040f5ce4a73d67750bff55 to your computer and use it in GitHub Desktop.
Switch between personal and work accounts on git
function git-personal {
git config --global core.sshCommand "/usr/bin/ssh -i $HOME/.ssh/personal"
}
function git-work {
git config --global core.sshCommand "/usr/bin/ssh -i $HOME/.ssh/id_rsa"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment