Managing Git Identities: Difference between revisions
m
no edit summary
OrderedSet (talk | contribs) (Write guide) |
OrderedSet (talk | contribs) mNo edit summary |
||
Line 26:
Now open up ~/.ssh/config and define aliases for when to use the key identities:
[[File:SSH config file for multiple SSH keys.png|none|thumb|408x408px]]
Now if you push to git@github.com (the default URL you paste from Github), it will use the public identity, and if you push to git@orderedset, it will use the OrderedSet / dev identity.
Now modify your dev git repos to point to the new remote using "git remote set-url origin git@orderedset:OrderedSet86/gtnh-flow.git" (replacing with your ID alias and git repo URL):
|