Reputation: 152
Two different people, with two individual accounts, using the same machine, and needing to separately use Github desktop to make commits.
So all the answers I have found deal with two accounts of the same person, typically a personal and a company account. This case is different. Me and my partner have to share the same machine, there is no way around this at the moment. We have our individual accounts that are not related. I downloaded Github desktop and logged in with my account first, which created the github folder on the machine, and i have been using it without a problem. However, is there a way for my partner to log me out, use it under her account, have a separate github folder for her repos, and then log out when done? Simply trying to log my account out from the options menu didn't seem to do anything.
gihub desktop log out screen
Upvotes: 1
Views: 1737
Reputation: 283
2 Things you can do:
Create 2 different users in windows for your friend and yourself. As the key for github remains under USER_HOME\.ssh thus, each user will have separate space to recognize it. Also the gitCOnfig too will be individuals for individual users.
In case you don't want 2 different users for windows, then the solution is bit tricky. While committing code, put your git user name in commit message. While your friend works, she need to put her git user name. Thus, individual commits are in their own name.
Upvotes: 1