SuperAPI AI Directory

git-commit

Coding & development

View repository

Updated 11-13 20:56

About this skill

Git Commit

Always use the commit script or heredoc format. Never use -m "..." with newlines.

Single-line commit

$CLAUDE_PLUGIN_ROOT/scripts/commit.sh "type: description"

Multi-line commit

$CLAUDE_PLUGIN_ROOT/scripts/commit.sh "type: description" "Body explaining WHY.

Additional context if needed."

Alternative: Direct heredoc

git commit -F - <<'EOF'
type: description

Body explaining WHY.
EOF

Never do this

# WRONG - causes shell parsing issues with multiline messages
git commit -m "type: description
body text"