Skip to content

Add gitswitch to For Developers#703

Open
OfirHaim1 wants to merge 1 commit into
alebcay:masterfrom
OfirHaim1:add-gitswitch
Open

Add gitswitch to For Developers#703
OfirHaim1 wants to merge 1 commit into
alebcay:masterfrom
OfirHaim1:add-gitswitch

Conversation

@OfirHaim1
Copy link
Copy Markdown

Adding gitswitch under ## For Developers, alphabetically between gita and hub.

* [gitswitch](https://github.com/target-ops/gitswitch) - Per-directory git identity binding with a pre-commit hook that refuses wrong-author commits.

What it does

Binds a git identity (user.email, user.name, signing key, SSH key, gh account) to a directory via includeIf. After a one-time setup, every cd is the switch — no manual juggling. The killer feature: a pre-commit hook (gitswitch guard) that refuses commits when the active email doesn't match the directory's bound identity, so "I committed as the wrong person" becomes structurally impossible.

Single Go binary, MIT licensed, ~2 MB, no runtime dependencies. macOS arm64/x64, Linux x64/arm64, Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant