Skip to content
TheChatArchiveThe Chat Archive
chatgpt-4o-latest-20250326· OpenAIHugging Face LMArena Human Preference 140K

can i have two github account on the same browser and switch between them instead of…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with grok-3-mini-beta’s answer.
  1. User

    can i have two github account on the same browser and switch between them instead of singin in and singing out multiple times

  2. Assistant

    Yes, you can use two GitHub accounts on the same browser and switch between them without constantly signing in and out — with a few smart tricks. Here's how you can do it:


    ✅ Option 1: Use GitHub’s Built-In Profile Switching

    If both accounts use GitHub Enterprise or/or GitHub for Work, you might see account switching under your profile image → Switch accounts.

    However, for regular accounts, GitHub currently doesn't support native switching for personal accounts (like Google does). So you’ll need to use the following workarounds:


    ✅ Option 2: Use Different Browser Profiles

    Use separate browser profiles to stay logged into different GitHub accounts simultaneously.

    🔹 Chrome or Edge:

    • Go to your browser menu → Profile icon (top right) → Add Profile.
    • Name it (e.g., “Work GitHub”, “Personal GitHub”) and choose an icon.
    • In each profile, log into a different GitHub account.
    • Switch between them easily using the profile icon.

    🔹 Firefox:

    • Type about:profiles in the address bar.
    • Create a new profile and open it in a new window.
    • Sign into the other GitHub account.

    ➡️ Advantages:

    • Completely isolated sessions (no cookie conflicts).
    • You can use both side by side.

    ✅ Option 3: Use Private/Incognito Window

    Open one account in normal mode, and the other in an Incognito/Private window.

    • 🔄 Fast and easy to switch.
    • ❌ But you'll have to log in again if the incognito window is closed.

    ✅ Option 4: Use Containers in Firefox (Best for devs)

    Install the Firefox Multi-Account Containers extension:

    • It lets you open tabs in "containers" which isolate cookies/logins.
    • You can have multiple GitHub accounts side by side.

    🔗 Firefox Multi-Account Containers – Add-on


    ✅ Option 5: Git Workflows — Authenticate Two GitHub Accounts on Git CLI

    If your goal is to use two GitHub accounts for managing code and repositories, you can also:

    1. Set up SSH keys for each account.
    2. Configure .gitconfig and custom host names.
    3. Use the correct key based on the repo URL — e.g.:
    git@github-personal:username/repo.git
    git@github-work:company/repo.git
    

    ➡️ Great for using multiple accounts in Git without switching browser sessions.


    Let me know what your use case is:

    • Is this for browsing GitHub.com?
    • Or managing repos with Git in the terminal?
    • Or working in GitHub Desktop or VS Code?

    I can give you tailored instructions!

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.