ADSSPEED

GitHub

How to Keep Two GitHub Accounts Apart on One PC with Browser Profiles and Git Settings

By ADSSPEED Team · Published · Updated · 6 min read

Can separate browser profiles keep two GitHub accounts apart?

Yes for the website, and only the website. Chrome Help (read 3 October 2026) says profiles let you keep information such as bookmarks, history, passwords and other settings separate, and it names keeping work and personal accounts apart as a use. Chromium's documentation says profile data such as history, bookmarks and cookies lives in a profile subdirectory of the user data directory, so a github.com sign-in made in one profile stays in that profile.

Git, the GitHub CLI and GitHub Desktop sign in on their own, so a browser profile does not decide which account they use. And GitHub itself recommends one personal account for all your work, so profiles suit legitimate pairs, such as a personal account next to an employer-managed one. See the rules guide.

What does a profile separate, and what does it leave alone?

ItemSeparate per browser profile?Note
github.com sign-inYesCookies live in that profile's own folder
The account-switcher listPer browserGitHub says it remembers the accounts in your browser
Bookmarks, history, saved passwordsYesNamed on Chrome Help's profile page
Git credentials, SSH keys, gh sign-inNoThey are set up outside the browser; see the Git section below
The computer and its network connectionNoEvery profile runs on the same machine
Protection from people at your keyboardNoChrome Help warns that anyone with your device can switch to another profile

Firefox offers Containers, which Mozilla describes as lightweight persistent contexts that isolate sites, separating cookies, localStorage, IndexedDB and caches. Its own example is work and personal accounts side by side in one window. Edge and Firefox also have profile features with different menus, so follow each browser's current help page.

How do you set up one Chrome profile per GitHub account?

  1. Plan the names first. One line per account, for example Acme - client - GitHub.
  2. Open Chrome, select Profile at the top right, then Add Chrome profile.
  3. Choose a name, photo and color scheme. Give each account its own color so you can tell the windows apart at a glance.
  4. Sign in to github.com inside that profile, with only that profile's account.
  5. Be ready for a check. If the account has no 2FA, GitHub may ask you to verify the new browser profile by email; the sign-in checks guide explains it.
  6. Repeat for each account. To move between profiles, select Profile and choose one. Check the icon before you act.
  7. Use the account switcher only inside one profile, for accounts that belong together, such as a personal account and its machine account.

How do you keep Git and the terminal on the right account?

NeedWhat GitHub's pages describe
A different commit email per projectgit config user.email "YOUR_EMAIL" inside the repository, without --global, overrides the global value for that repository only
HTTPSA credential helper, git config --global credential.https://github.com.useHttpPath true, and a dedicated personal access token per account
SSHOne key per account, with host entries in ~/.ssh/config and IdentitiesOnly yes; ssh -T git@github.com shows which account a key reaches
GitHub CLIgh auth login for each account, then gh auth switch
GitHub DesktopSign-in happens through your default browser; the page does not describe two GitHub.com accounts

GitHub warns that handling two or more accounts makes it likelier you will expose internal code by mistake, so check which account a repository uses before every push. It also says to treat access tokens like passwords.

How should you name, hand over and back up each profile?

PracticeWhat to doWhy
NamingAccount, role and purpose in that order; one color per accountYou spot the wrong profile before you click
Hand-overDo not pass on a signed-in profile; add the next person to the organization with their own accountThe Terms reserve each login for one person
Retiring a profileRemove it only after access has movedChrome Help says removing a profile wipes its bookmarks, history, passwords and other settings from the computer
Recovery codesUnder Password and authentication, next to Recovery codes, choose View; download or print the set of 16 and keep it in a password managerEach code works once, and GitHub says not to share them
TokensTreat them like passwords and give each an expirationGitHub recommends an expiration, and says tokens are tied to the user who made them
Where profiles liveChromium lists %LOCALAPPDATA%\Google\Chrome\User Data on Windows and ~/Library/Application Support/Google/Chrome on macOSKnowing the location helps; a folder copy is no substitute for being able to sign in

What if something still lands on the wrong account?

  1. Check the profile icon, then the avatar at the top right of github.com.
  2. Permission to user/repo denied to other-user. The key you push with belongs to an account without access; the owner can add that account as a collaborator.
  3. Commits show another author. GitHub matches the commit's email to an account. Fix the local setting, and add the address to the account you meant.
  4. A verification email you did not request. GitHub says your password may be compromised: change it now and secure the account.
  5. Repeated prompts in one profile. GitHub says clearing cookies, or using another browser on the same device, can trigger device verification again. Keep each account in its own profile and avoid wiping its cookies.

When do ordinary profiles stop being enough?

SignWhat helps
The profile list no longer fits in a spreadsheet or in your headOpening, stopping and organising profiles in bulk
Accounts need their own network settingsA proxy per profile; see proxy types explained
You are comparing incognito windows, VPNs and profilesAntidetect browser vs VPN vs incognito

None of these changes GitHub's rules, and none replaces each person's own account.

Where ADSSPEED fits

ADSSPEED is a desktop app for Windows and macOS that manages many browser profiles in one place. Each profile keeps its own cookies, local data and browser settings, so accounts you own or are authorised to manage can stay signed in side by side without signing each other out. Profiles can be opened, stopped and organised in bulk, a proxy can be set per profile and assigned to many profiles at once, and profile data stays on your own computer. See how to install ADSSPEED on Windows. ADSSPEED is not affiliated with GitHub.

Frequently asked questions

Can I use two GitHub accounts on one computer with different Chrome profiles?

For the website, yes. Chrome Help says profiles keep bookmarks, history, passwords and other settings separate, and Chromium's documentation says profile data such as cookies lives in a profile subdirectory. GitHub still recommends one personal account for all your work, so use this for legitimate pairs such as a personal and an employer-managed account.

How do I use multiple GitHub accounts on the same computer on Windows or Mac?

Use one browser profile per account for github.com, then set up Git separately. GitHub's page on managing multiple accounts has steps for macOS, Windows and Linux: HTTPS with a personal access token per account, or SSH with one key per account in the ~/.ssh/config file, plus a per-repository commit email. The GitHub CLI adds gh auth switch.

Does a browser profile also separate my Git credentials?

No. GitHub's pages show Git over HTTPS, Git over SSH, the GitHub CLI and GitHub Desktop each signing in on their own, so a browser profile does not choose the account they use. Set credentials, keys and the commit email per repository, and test with ssh -T git@github.com.

Will GitHub ask me to verify a new browser profile?

It may. GitHub's device verification page says that when 2FA is not enabled, an unrecognised device can include a new browser or a new browser profile, with a code sent by email. It says GitHub does not ask for this when 2FA is enabled or when you sign in with a passkey.

How do I set a different commit email for each GitHub account?

Run git config user.email with the address inside the repository, without --global, to override your global setting for that repository only. GitHub links a commit to a user by matching the commit's email address to an email address on a GitHub account.

What happens if I delete a Chrome profile that holds a GitHub sign-in?

Chrome Help says removing a profile erases its bookmarks, history, passwords and other settings from the computer. Before you do, make sure you hold the account's 2FA recovery codes, because GitHub Support will not restore a 2FA-protected account if you lose your credentials.

Sources

  1. Google Chrome Help: Set up a profile (Manage Chrome with multiple profiles)
  2. Chromium docs: User data directory and profiles
  3. Mozilla wiki: Contextual Identity Project, Containers
  4. GitHub Docs: Managing multiple accounts
  5. GitHub Docs: Personal account management
  6. GitHub Docs: Verifying new devices when signing in
  7. GitHub Docs: Switching between accounts
  8. GitHub Docs: Setting your commit email address
  9. GitHub Docs: Troubleshooting commits
  10. GitHub Docs: Testing your SSH connection
  11. GitHub Docs: Using the GitHub CLI across GitHub platforms
  12. GitHub Docs: Configuring two-factor authentication recovery methods
  13. GitHub Docs: Recovering your account if you lose your 2FA credentials
  14. GitHub Docs: Managing your personal access tokens

Related guides

Can You Stay Signed In to Two GitHub Accounts on One Computer?GitHub's account switcher keeps several accounts signed in in one browser. See who it is for, how to add accounts, and how Git, the CLI and Desktop differ.GitHub Keeps Logging Me Out and Asking to Verify My Device: Causes and FixesWhy GitHub asks you to verify a device, signs you out or restricts an account, how sessions and 2FA recovery work, and what to check when accounts share a PC.GitHub Multiple Accounts and the Terms of Service: One Free Account per PersonWhat GitHub's Terms and Acceptable Use Policies say about multiple accounts: the one-free-account rule, machine and managed accounts, merging, and appeals.How to Give a Team or a Client Access to GitHub Without Sharing a LoginUse GitHub organizations, roles, outside collaborators, 2FA and SSO instead of shared logins for a team or client, and learn how to off-board people cleanly.Antidetect Browser vs VPN vs Incognito (2026): Who Can Still See You?Incognito, VPN or antidetect browser? See what each one hides, and from whom, in a side-by-side table, plus the blind spots all three share.How to Install ADSSPEED on Windows and Open Your First Profile (First-Run Guide)From download to your first open profile: what to prepare, the install and sign-in steps, how to check your first profile, and what to do if setup stalls.Proxy Types Explained: Datacenter vs Residential vs Mobile (4G/5G) — Which One Do You Need?Datacenter, residential or mobile (4G/5G)? A plain-language comparison of speed, cost and trust, plus a decision table and a proxy cheat sheet.What Is a Browser Profile? Chrome Profiles vs Containers vs Antidetect Profiles (2026)A browser profile is a separate set of cookies, history and settings. See what Chrome profiles keep apart, what they don't, and when to use something stronger.

Run Android devices and browser profiles on your own PC

ADSSPEED manages many browser profiles and Android phone profiles from one app, each with its own device configuration, proxy and automation.