Skip to content

Instantly share code, notes, and snippets.

@TheGardenMan
Last active May 29, 2024 00:57
Show Gist options
  • Save TheGardenMan/0cae33f8d2907c0ff3db56bf18e709eb to your computer and use it in GitHub Desktop.
Save TheGardenMan/0cae33f8d2907c0ff3db56bf18e709eb to your computer and use it in GitHub Desktop.
How to use multiple GitHub accounts in GitHub Desktop

How to use multiple GitHub accounts in GitHub Desktop

Let's say you have two users and repos likeTheGardenMan1/repo1 and TheGardenMan2/repo2.

Clone both the repos to your local using this approach.

Now add these repos to GitHub Desktop via File --> Add Local Repository.

Now you have the repos, you only need to be able push and pull from them using different accounts .

Create access tokens for both the accounts like gtoken1 and gtoken2 at https://github.com/settings/tokens. I used Classic tokens by the way.

Now go to repo1 in GH Desktop, Repository --> Repository Settings and update the value of Remote to https:<gtoken1>@github.com/TheGardenMan1/repo1 and save.

Now you should be able to push and pull. Do the same for all repos.

You still have to commit using correct email etc which you can do via repo-specific git configuration.

I am looking for a (Part time preferred - 10-20 hrs) , fully remote Python Backend Dev role.

Skills: Django ,DRF & PostgreSQL.

My resume is here: https://docs.google.com/document/d/1I-bH9dylIbKbfnZgMXd-y1A7q8TVEnFxF4Hn4uPjy44/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment