Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 496 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 496 Bytes

Using multiple SSH keys with github

example ~/.ssh/config

Host github.com-work
	hostname github.com
	user git
	identityfile ~/.ssh/work-key

Host github.com-personal
	hostname github.com
	user git
	identityfile ~/.ssh/personal-key

Personal

git remote set-url origin [email protected]:personal-account-org-name/project-name.git

git push -u origin

Work

git remote set-url origin [email protected]:work-account-org-name/project-name.git

git push -u origin