tinycodinglm / code /code204.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 12)
3c88a0f verified
|
Raw History Blame
1.92 kB
deepseek-harness trace
System 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 c...

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.

User

What is a good Git workflow for a team?

Assistant

Branching Strategy (Git Flow):

  • main - production ready
  • develop - integration branch
  • feature/* - new features
  • release/* - release preparation
  • hotfix/* - urgent fixes

Commit Messages:

markdown
feat: add user authentication
fix: resolve login timeout issue
docs: update API documentation
refactor: simplify validation logic
test: add unit tests for auth
chore: update dependencies

Pull Request Process:

  1. Create feature branch from develop
  2. Make small, focused commits
  3. Write clear PR description
  4. Request code review
  5. Address feedback
  6. Squash and merge

Code Review Checklist:

  • Code follows style guide
  • Tests pass (CI green)
  • No security issues
  • Documentation updated
  • Breaking changes noted

Useful Commands:

bash
# Interactive rebase
git rebase -i HEAD~3

# Amend last commit
git commit --amend

# Stash changes
git stash push -m "WIP"

# Cherry-pick
git cherry-pick <commit>

# Bisect to find bug
git bisect start

Tips:

  • Commit early and often
  • Write meaningful messages
  • Review your own PR first
  • Keep branches short-lived
  • Use conventional commits