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:git commit -m "Subject line" -m "Body paragraph here." - Complex: Use a heredoc to pass the message:
git commit -m "$(cat <<'EOF' Subject line Body paragraph here. EOF )"