# commit-hygiene

Commit rules for every repo: author and committer = Waleed only, no Co-Authored-By/AI attribution lines, plain messages, rebase onto origin before pushing; enforced by a commit-msg hook and a safe-push script.

- **Space:** github-ops-public (https://github.com/Tech-Realm/space-github-ops-public/tree/main/commit-hygiene)
- **Level:** L1 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** git, bash
- **Routes:** gh-cli; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use github-ops-public/commit-hygiene` or MCP `get_pack github-ops-public/commit-hygiene`
- **Files:** CHANGELOG.md, code/commit-msg, code/safe_push.sh, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

Commit rules for every repo: author and committer = Waleed only, no Co-Authored-By/AI attribution lines, plain messages, rebase onto origin before pushing; enforced by a commit-msg hook and a safe-push script.

## Goal


## Steps

2. Install the hook: `cp code/commit-msg .git/hooks/commit-msg && chmod +x .git/hooks/commit-msg` (rejects Co-authored-by trailers, 'Generated with' lines and AI-vendor noreply addresses).
3. Before every push: `bash code/safe_push.sh [branch]` = fetch, rebase onto origin/<branch>, push (stops on conflicts).
4. PR/MR descriptions, tags, releases and changelogs follow the same rule.

## Edge cases

- Other sessions push to the same main: always rebase right before pushing.
- GitHub may keep attribution in a merged PR's commits; prevent it, it can't always be removed later.

## Don'ts

- Don't add Co-Authored-By or 'Generated with' lines anywhere.



---

Canonical URL: https://logicpacks.io/packs/github-ops-public/commit-hygiene

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
