[PR #703] Add gitswitch to For Developers #10778

Open
opened 2026-06-14 16:23:22 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/alebcay/awesome-shell/pull/703
Author: @OfirHaim1
Created: 5/1/2026
Status: 🔄 Open

Base: masterHead: add-gitswitch


📝 Commits (1)

  • c87d17c Add gitswitch to For Developers

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 README.md (+1 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/alebcay/awesome-shell/pull/703 **Author:** [@OfirHaim1](https://github.com/OfirHaim1) **Created:** 5/1/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `add-gitswitch` --- ### 📝 Commits (1) - [`c87d17c`](https://github.com/alebcay/awesome-shell/commit/c87d17c44b1558537a396c9cffb348541cfe50ba) Add gitswitch to For Developers ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) </details> ### 📄 Description Adding [gitswitch](https://github.com/target-ops/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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-06-14 16:23:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-shell#10778