<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-use-multiple-github-accounts-aloq1wouj" -->

---
title: How to Use Multiple GitHub Accounts | daily.dev
description: Learn how to use and configure multiple GitHub accounts in Git. Discover the limitations of Git account configuration and the solution to automatically switch...
canonical: https://daily.dev/posts/how-to-use-multiple-github-accounts-aloq1wouj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to Use Multiple GitHub Accounts | daily.dev
og:description: Learn how to use and configure multiple GitHub accounts in Git. Discover the limitations of Git account configuration and the solution to automatically switch...
og:url: https://daily.dev/posts/how-to-use-multiple-github-accounts-aloq1wouj
og:image: https://api.daily.dev/og/posts/aLoQ1wOUJ.png
og:image:alt: How to Use Multiple GitHub Accounts
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Use Multiple GitHub Accounts

**[InfoQ](https://daily.dev/sources/infoq)** · 11 min read · 7 upvotes · 0 comments

## Summary

Learn how to use and configure multiple GitHub accounts in Git. Discover the limitations of Git account configuration and the solution to automatically switch accounts based on the project's parent directory location. Find out the downsides of using alternative solutions and the benefits of the presented solution.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.infoq.com/articles/how-to-use-multiple-github-accounts/>

---

Tags: [#github](https://daily.dev/tags/github), [#git](https://daily.dev/tags/git), [#ssh](https://daily.dev/tags/ssh), [#version-control](https://daily.dev/tags/version-control)

[View this post on daily.dev](https://daily.dev/posts/how-to-use-multiple-github-accounts-aloq1wouj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to Use Multiple GitHub Accounts","url":"https://daily.dev/posts/how-to-use-multiple-github-accounts-aloq1wouj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-use-multiple-github-accounts-aloq1wouj"},"datePublished":"2024-04-30T09:04:31.715Z","dateModified":"2024-05-09T07:52:51.999Z","description":"Learn how to use and configure multiple GitHub accounts in Git. Discover the limitations of Git account configuration and the solution to automatically switch...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/0ec06a1c3f2b2fdf971198cd22905154?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/0ec06a1c3f2b2fdf971198cd22905154?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"InfoQ","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"InfoQ","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/afc3bced3e1e4b188dd9127017a60e0c","url":"https://daily.dev/sources/infoq"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-use-multiple-github-accounts-aloq1wouj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":7},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"github,git,ssh,version-control","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"InfoQ","item":"https://daily.dev/sources/infoq"},{"@type":"ListItem","position":3,"name":"How to Use Multiple GitHub Accounts"}]}
```

