git-workflow
Git workflow and commit conventions. Use when committing code, creating branches, or making pull requests.
来源信息
- 仓库
- meleantonio/ChernyCode
- 最近来源活动
- 2026年2月1日 11:23
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 519
- Forks
- 107
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- git-workflow
- description
- Git workflow and commit conventions. Use when committing code, creating branches, or making pull requests.
# Git Workflow
## Branch Strategy
- Use GitHub Flow
- Main branch is always deployable
- Create feature branches from main
- Use descriptive branch names: `feature/add-auth`, `fix/login-bug`
## Conventional Commits
Use the following prefixes:
| Prefix | Description |
|--------|-------------|
| `feat:` | New feature |
| `fix:` | Bug fix |
| `docs:` | Documentation only |
| `style:` | Formatting, no code change |
| `refactor:` | Code change without feature/fix |
| `test:` | Adding or updating tests |
| `chore:` | Maintenance, dependencies |
Examples:
```
feat: add user authentication endpoint
fix: resolve login timeout issue
docs: update API documentation
refactor: extract validation logic to utility
test: add unit tests for auth service
chore: update dependencies
```
## Commit Best Practices
- Write clear, concise messages
- Focus on "why" not "what"
- Keep commits atomic (one logical change)
- Run tests before committing
- Never commit secrets or credentials
## Pre-Commit Checklist
1. Run tests: `pytest`
2. Format code: `ruff format .`
3. Lint code: `ruff check .`
4. Review changes: `git diff`
## Pull Requests
- Create descriptive PR titles
- Include summary of changes
- Reference related issues
- Request reviews from relevant team members
## Files to Never Commit
- `.env` files with secrets
- `credentials.json`
- API keys or tokens
- Large binary files
- IDE-specific files (unless shared team config)
在 GitHub 查看