proxy.golang.org : github.com/tmc/misc/clean-cc-git-history
Clean-cc-git-history removes AI-generated and co-authorship attribution lines from Git commit messages while preserving original commit information through Git notes. The tool processes Git commits on the current branch, removing lines containing "Generated with" and "Co-Authored-By" from commit messages. By default, it only processes unpushed commits. The original commit SHA and modification history are preserved through Git notes for auditability. The tool operates on the current Git repository and branch. The following flags control the tool's behavior: The tool performs the following operations for each qualifying commit: Lines are removed if they match these patterns (case-insensitive): When using -msg-command, the tool can generate entirely new commit messages based on the cleaned content. This is useful for creating more descriptive commit messages after removing attribution lines. Preview changes for unpushed commits (default behavior): Actually clean unpushed commits: Process all commits on the current branch: Preview changes with verbose output: Generate new commit messages using git-auto-commit-message: Limit processing to first 5 commits with custom message generation: Generate a reviewable script: This tool uses Git's interactive rebase feature to modify commit messages. Unlike approaches that create entirely new commits, rebase preserves more of the original commit metadata while still allowing message modification. The tool creates temporary shell scripts during execution: When using -generate-script, these operations are packaged into a standalone bash script for review and manual execution. The tool requires: The tool uses the following exit codes: This tool rewrites Git history. Ensure you have backups and coordinate with team members before running on shared branches. Never run on commits that have already been pushed to shared repositories unless you coordinate with all collaborators.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/tmc/misc/clean-cc-git-history
License: MIT
Latest release: 6 days ago
Namespace: github.com/tmc/misc
Stars: 8 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 6 days ago