Created
July 20, 2020 00:56
-
-
Save deanputney/6a463618a4040f5ce4a73d67750bff55 to your computer and use it in GitHub Desktop.
Switch between personal and work accounts on git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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