joplin-notes/Export-9fad9947-5bd5-4195-952b-6512c5a4beb1/Web development 83dd4e6675f04ba782a6865a434a0598/GitHub cc67e8c9e0c945a587b473d533a8d80a/Managing Different Accounts 0b4d3ba72da14c688ca2fc.md
2026-11-04 00:33:23 +05:30

23 lines
No EOL
406 B
Markdown

# Managing Different Accounts
Using more than 1 git account on same machine
### While cloning
- git clone git@github.com-work
Here `git@github.com-work` is ssh id
So if username is a1 and a2 then
for a1:
`git clone git@github.com:a1/code-repo.git`
for a2:
`git clone git@github.com:a2/code-repo.git`
 
- To add new origin
`git remote add origin git@github.com-work:a2/code-repo.git`