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 for authentication.
- Aliases:
setuser,setremoteuser.
set-hooks
- Install git hooks (pre-push, pre-commit, commit-msg) in the repository.
- Aliases:
sethooks.
check-pre-push
- Validate the current branch name against allowed patterns before pushing.
- Aliases:
checkprepush,prepush.
check-pre-commit
- Check staged files for excluded patterns before committing.
- Aliases:
checkprecommit,precommit.
check-commit-message
- Validate the commit message format against configured patterns.
- Aliases:
checkcommitmessage,commitmessage.
stash-pop
- Pop the latest git stash entry and restore the stashed changes.
fix
- Auto-fix common git issues such as line endings and file permissions.