Skip to content

Commit 695f2ce

Browse files
committed
docs: add git workflow shortcuts to CLAUDE.md
1 parent 2992ca6 commit 695f2ce

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/CLAUDE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,23 @@
3939

4040
## Git workflow
4141

42+
When user says "let's push to git" or similar:
43+
1. Check git status first
44+
2. If on develop or main, create a new branch using convention:
45+
- `docs/` for documentation changes
46+
- `feat/` for new features
47+
- `fix/` for bug fixes
48+
3. Stage and commit changes with one-line message
49+
4. Push with `-u` flag to set upstream: `git push -u origin branch-name`
50+
5. Default branch is `develop` (not main)
51+
52+
Standard workflow:
4253
- NEVER use --no-verify when committing
4354
- Ask how to handle uncommitted changes before starting
4455
- Create a new branch when no clear branch exists for changes
4556
- Commit frequently throughout development
4657
- NEVER skip or disable pre-commit hooks
58+
- Keep commit messages to one line unless user requests otherwise
4759

4860
## Do not
4961

0 commit comments

Comments
 (0)