406 B
406 B
Managing Different Accounts
Using more than 1 git account on same machine
While cloning
- git clone git@github.com-work
Here
git@github.com-workis 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