tinycodinglm / code /code032.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 12)
3c88a0f verified
|
Raw History Blame
1.99 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 are common Git workflows and branching strategies?

Assistant

Git Flow:

  • main: production-ready code
  • develop: integration branch
  • feature/*: new features (branch from develop)
  • release/*: prepare for release
  • hotfix/*: urgent production fixes

GitHub Flow:

  • main: always deployable
  • feature branches: branch from main
  • Pull Request: review and merge
  • Simple, continuous deployment

Trunk-Based Development:

  • Single main branch
  • Short-lived feature branches (< 1 day)
  • Frequent integration
  • Feature flags for incomplete features

Common Commands:

bash
# Branching
git checkout -b feature/new-login
git branch -d feature/old-branch
git branch -a  # list all branches

# Stashing
git stash save "WIP feature"
git stash list
git stash pop

# Rebasing
git rebase main  # linear history
git rebase --onto main feature~3 feature

# Cherry-picking
git cherry-pick abc123  # apply specific commit

Merge vs Rebase:

  • Merge: preserves history, creates merge commit
  • Rebase: linear history, rewrites commits
  • Never rebase shared/public branches

Best Practices:

  • Branch naming: feature/, bugfix/, release/
  • Keep branches short-lived
  • Write meaningful commit messages
  • Review PRs before merging
  • Delete merged branches