Story

Show HN: Git-identity-switcher – a CLI to switch Git user identity per repo

csawai Wednesday, January 14, 2026

Hi HN,

I built this because I regularly switch between work, personal, and client GitHub accounts and kept committing with the wrong identity.

This is a small CLI that lets you define multiple Git identities and switch them per-repo without touching global config.

It doesn’t manage SSH keys — it focuses only on Git name/email to reduce mistakes.

Would love feedback or suggestions. Happy to answer questions.

Summary
The Git Identity Switcher is a simple script that allows users to easily switch between different Git identities (name and email) on a per-repository basis. This tool helps manage multiple Git accounts and maintain consistent authorship for commits.
1 0
Summary
github.com
Visit article Read on Hacker News