Skip to Main content

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, 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 (for pre-push hook)
Aliases: checkprepush, prepush

check-pre-commit

Check staged files for excluded patterns before committing (for pre-commit hook)
Aliases: checkprecommit, precommit

check-commit-message

Validate the commit message format against configured patterns (for commit-msg hook)
Aliases: checkcommitmessage, commitmessage

stash-pop

Pop the latest git stash entry and restore changes

fix

Auto-fix common git issues (e.g. line endings, permissions)