tuyen git
Git helper commands for configuring users, managing hooks, running pre-commit and pre-push checks, and more.
Usage
tuyen git <COMMAND>Options
-h, --help
- Print help.
Commands
set-user
- Configure the git remote URL with an embedded username and set local user identity.
- Aliases:
setuser,setremoteuser.
set-hooks
- Install git hooks in the repository for pre-commit, pre-push, and commit-msg validation.
- Aliases:
sethooks.
check-pre-push
- Validate pushed remote branch names against allowed patterns before pushing.
- Aliases:
checkprepush,prepush.
check-pre-commit
- Check staged files for excluded patterns and back up matching files before committing.
- Aliases:
checkprecommit,precommit.
check-commit-message
- Validate the first nonempty commit-message line against configured patterns without rewriting the file.
- Aliases:
checkcommitmessage,commitmessage.
stash-pop
- Stash tracked local changes, pull from upstream, and restore only the stash created by this invocation.
fix
- Remove corrupted empty loose objects while preserving pack metadata, then run garbage collection and integrity checks.