Skip to content

Instantly share code, notes, and snippets.

@tieudieutiger
tieudieutiger / Multiple github account in a computer
Created August 24, 2018 13:38
Multiple github account in a computer
#From:
https://stackoverflow.com/questions/3860112/multiple-github-accounts-on-the-same-computer
##Getting into shape
To manage a git repo under a separate github/bitbucket/whatever account, you simply need to generate a new SSH key.
But before we can start pushing/pulling repos with your second identity, we gotta get you into shape – Let's assume your system is setup with a typical id_rsa and id_rsa.pub key pair. Right now your tree ~/.ssh looks like this
$ tree ~/.ssh