commit changes to git repository and push if needed
Smart commit tool that stages, creates conventional commits, and optionally pushes. Automatically creates a new branch if you're on the default branch.
/plugin marketplace add him0/him0-claude-marketplace/plugin install him0-git-ops@him0-claude-marketplace--push | -p/commit
/commit --push # Commit and push changes
Run these commands in parallel to gather information:
git statusgit diffgit log --oneline -5gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name' (to get default branch)If the current branch is the default branch and there are differences, create a new branch. Give the branch an appropriate name and commit the changes.
If --push or -p option is given, push the branch to the remote repository.
Use the Conventional Commits format for commit messages:
<type>(<scope>)!: <subject>
(blank line)
<body>
(blank line)
<footer / BREAKING CHANGE / related issue(s) etc.>
Required: type, subject Optional: scope, ! (breaking change), body, footer
feat : New feature fix : Bug fix docs : Documentation only style : Formatting (whitespace, semicolons, etc.) refactor : Refactoring (not a feature, not a bug fix) perf : Performance improvement test : Add/modify tests build : Build system / dependencies / distribution ci : CI configuration / scripts chore : Chore (other than src / test) revert : Revert previous commit