SuperAPI AI Directory

git-commit-push

General & other

View repository

Updated 10-16 09:29

About this skill

Git Commit & Push

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

Trigger conditions

Use this skill when the user asks to commit changes and push (but does not need to open a PR).

Execution steps

  1. Create a new branch:git checkout -b <branch-name>, with the branch name specified by the user or automatically generated based on the changes. If the user wants to commit directly on the current branch, skip this step.

  2. Review changes: first use git status and git diff to check all changes yourself, making sure no temporary files, debug code, or unrelated files are mixed in.

  3. Stage files:git add the relevant changed files. Do not use git add -A or git add ., but add the relevant files one by one.

  1. Commit changes:

    git commit --signoff --author="Cheney Zhang <chen.zhang@zilliz.com>" -m "<commit message>"
    
    • Write the commit message in English, briefly describing the changes.
    • Absolutely nevermention AI, Claude, LLM, or any auto-generation-related wording in the commit message.
  2. Push the branch:git push origin <branch-name>。

Notes

  • Before committing, check whether there are unstaged changes that need to be handled.
  • All commits require --signoff, with the author being "Cheney Zhang chen.zhang@zilliz.com"。
  • No AI-related wording may appear in the commit message.