tuyen git
Git helper commands (set user, hooks, pre-commit/push checks, stash, fix)
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, setremoteuserset-hooks
Install git hooks (pre-push, pre-commit, commit-msg) in the repository
Aliases:
sethookscheck-pre-push
Validate the current branch name against allowed patterns (for pre-push hook)
Aliases:
checkprepush, prepushcheck-pre-commit
Check staged files for excluded patterns before committing (for pre-commit hook)
Aliases:
checkprecommit, precommitcheck-commit-message
Validate the commit message format against configured patterns (for commit-msg hook)
Aliases:
checkcommitmessage, commitmessagestash-pop
Pop the latest git stash entry and restore changes
fix
Auto-fix common git issues (e.g. line endings, permissions)