tinycodinglm / code /code204.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 12)
3c88a0f verified
|
Raw History Blame
1.92 kB
{"type": "session", "harness": "deepseek-harness", "id": "code204", "name": "Git workflow best practices"}
{"type": "message", "message": {"role": "system", "content": "You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies."}}
{"type": "message", "message": {"role": "user", "content": "What is a good Git workflow for a team?"}}
{"type": "message", "message": {"role": "assistant", "content": "**Branching Strategy (Git Flow):**\n- `main` - production ready\n- `develop` - integration branch\n- `feature/*` - new features\n- `release/*` - release preparation\n- `hotfix/*` - urgent fixes\n\n**Commit Messages:**\n```\nfeat: add user authentication\nfix: resolve login timeout issue\ndocs: update API documentation\nrefactor: simplify validation logic\ntest: add unit tests for auth\nchore: update dependencies\n```\n\n**Pull Request Process:**\n1. Create feature branch from `develop`\n2. Make small, focused commits\n3. Write clear PR description\n4. Request code review\n5. Address feedback\n6. Squash and merge\n\n**Code Review Checklist:**\n- [ ] Code follows style guide\n- [ ] Tests pass (CI green)\n- [ ] No security issues\n- [ ] Documentation updated\n- [ ] Breaking changes noted\n\n**Useful Commands:**\n```bash\n# Interactive rebase\ngit rebase -i HEAD~3\n\n# Amend last commit\ngit commit --amend\n\n# Stash changes\ngit stash push -m \"WIP\"\n\n# Cherry-pick\ngit cherry-pick <commit>\n\n# Bisect to find bug\ngit bisect start\n```\n\n**Tips:**\n- Commit early and often\n- Write meaningful messages\n- Review your own PR first\n- Keep branches short-lived\n- Use conventional commits"}}