Skip to content

Instantly share code, notes, and snippets.

@punchouty
Created March 23, 2021 18:47
Show Gist options
  • Save punchouty/1aef610c6273db1da3f6365b1cde6978 to your computer and use it in GitHub Desktop.
Save punchouty/1aef610c6273db1da3f6365b1cde6978 to your computer and use it in GitHub Desktop.
Manage multiple git account

Multiple Git Repositories

Generate SSH Keys

Remove all files fro ~/.ssh folder

ssh-keygen -t rsa -C "rajan@punchouty.com"

Give empty passphrase. Two files be created in ~/.ssh folder

Registering the new SSH Keys with the ssh-agent

eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa

Github

pbcopy < ~/.ssh/id_rsa.pub

Add key to github account

In www.github.com add key => Go to Setting > SSH and GPG keys > New SSH key

Add key to azure account

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment