Commit and Push
- •Run
git statusto see what's changed - •Run
git diffandgit diff --stagedto understand the changes - •Run
git log --oneline -5to see recent commit style - •Stage all relevant changed files by name (do NOT use
git add -Aorgit add .) - •If
$ARGUMENTSis provided, use it as the commit message. Otherwise, write a concise commit message based on the diff. Always append the co-author trailer:codeCo-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- •Commit using a HEREDOC:
bash
git commit -m "$(cat <<'EOF' message here Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> EOF )"
- •Push to the current branch with
git push - •Report the result