Problem statement: I have two git-hub accounts, one I use for office work and the other is for my personal work. As per the git documentation, I am able to configure them on my machine, but I can access only one at a time. What I need is a way to configure both the accounts in same machine.
Problem Solution: So far I don't have any solution to this problem. But, I have found a work around to this problem. And here it is ...
Problem Solution: So far I don't have any solution to this problem. But, I have found a work around to this problem. And here it is ...
- Assumptions: git-account-1, git-account-2
- Configure git-account-1 in your machine. Follow the git hub docs.
- Login to git-hub using git-account-1
- Search for git-account-2
- Click user name link
- Select the repository
- Click on Fork button
- By default git-account-1 will get read access to the repository
- Login to git-hub using git-account-2
- Open the repository link
- Click on Admin button
- Click Collaborators, Search user and Add
No comments:
Post a Comment