Commit, Push, PR
Workflow
- •
Check existing PRs:
gh pr list --head $(git branch --show-current). If exists, ask to update instead. - •
Check for sensitive files: Warn and stop if .env, credentials, keys staged.
- •
Create branch if on main/master:
git checkout -b <descriptive-branch-name> - •
Stage and commit with conventional format:
- •
type(scope): description - •Types: feat, fix, refactor, docs, test, chore, perf
- •
- •
Push to origin with
-uflag. - •
Create PR:
- •Title: Match commit or summarize
- •Body:
code
## Summary <2-3 bullet points> ## Changes <key file changes> ## Testing <how to test or "CI covers this"> Closes #<issue> (if applicable)
- •Add
--draftif work incomplete
Commands
bash
git status git diff HEAD git branch --show-current git log --oneline -5 gh pr list --head <branch>