Skip to content

Instructions on how to manage multiple git (+azure) accounts on one machine.

Notifications You must be signed in to change notification settings

Gipfel/multiple-github-accounts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Multiple Git Accounts (GitHub + Azure DevOps)

This project provides practical setup guides for using multiple Git identities on one machine β€” for example a work account and a private account β€” without mixing SSH keys, remotes, or commit identities.

What this project does

  • Explains how to configure separate SSH keys per account
  • Shows how to use SSH host aliases for multiple GitHub accounts
  • Describes folder-based Git identity switching using includeIf
  • Covers Azure DevOps alongside GitHub (and the same approach works for Git-only workflows)

βœ… Why this is useful

When you work across private and company repositories, it is easy to accidentally:

  • push with the wrong account
  • commit with the wrong email/name
  • reuse the wrong SSH key

These guides help you keep accounts cleanly isolated and make your default identity explicit.

πŸ‘€ Who this is for

  • Developers with both private and work projects
  • Teams using GitHub for one context and Azure DevOps for another
  • Anyone who needs predictable, folder-based account separation on Windows

πŸ“˜ Setup guides

In short

You get a scalable, low-friction way to manage multiple Git accounts on one computer with clear authentication and commit identity boundaries.

About

Instructions on how to manage multiple git (+azure) accounts on one machine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published