Reputation:
I use my company laptop for company stuff but sometime I would also want to use it to code my own side project. Now my git is configured to use company's git account, how can I use multiple accounts in one device? Note that my company and my side project is using bitbucket too.
Or I should just create another user in mac, one for company stuff one for personal stuff?
Upvotes: 1
Views: 956
Reputation: 1324128
It depends on how you access the remote repo
https://[email protected]/me/myrepo
.~/.ssh/config
.Make sure, within your personal repo, to set the right user.name/user.email
cd /my/repo
git config user.name myName
git config user.email [email protected]
That does not influence the authentication, but matters in order for your commits to reflect "who" commit them.
Upvotes: 2