Git
- •Never
git pushto the default branch (usuallymainormaster) unless I explicitly instruct you to do so. - •Always use a topic branch with a few brief word hyphenated name
Commit Messages
For multi-line commit messages:
- •Simple (subject + body): Use multiple
-mflags. Each-mcreates a separate paragraph:bashgit commit -m "Subject line" -m "Body paragraph here."
- •Complex: Use the Write tool to write to
tmp/commit-msg.md, thengit commit -F tmp/commit-msg.md
Do not use heredocs — they create temp files that fail in sandbox environments. This includes git commit -m "$(cat <<'EOF' ... EOF)" and cat > file << 'EOF'.