git-commit-push

Original🇨🇳 Chinese
Translated

Commit changes and push to origin without creating a PR

11installs
Added on

NPX Install

npx skill4agent add zc277584121/mygitplugin git-commit-push

Tags

Translated version includes tags in frontmatter

SKILL.md Content (Chinese)

View Translation Comparison →

Git Commit & Push

Commit changes and push to the origin remote without creating a PR.

Trigger Conditions

This skill is used when the user requests to commit changes and push (but does not need to create a PR).

Execution Steps

  1. Create a new branch:
    git checkout -b <branch-name>
    , the branch name is specified by the user or automatically generated based on the changes. If the user wants to commit directly to the current branch, skip this step.
  2. Review changes: First use
    git status
    and
    git diff
    to check all changes yourself to ensure that no temporary files, debugging code or unrelated files are included.
  3. Stage files: Use
    git add
    to add relevant changed files. Do not use
    git add -A
    or
    git add .
    ; instead, add relevant files one by one.
  4. Commit changes:
    bash
    git commit --signoff --author="Cheney Zhang <chen.zhang@zilliz.com>" -m "<commit message>"
    • The commit message should be written in English and concisely describe the changes.
    • Never mention AI, Claude, LLM or any words related to automatic generation in the commit message.
  5. Push the branch:
    git push origin <branch-name>
    .

Notes

  • Check if there are any unstaged changes that need to be handled before committing.
  • All commits require
    --signoff
    , with the author being "Cheney Zhang chen.zhang@zilliz.com".
  • No AI-related words can appear in the commit message.