mirror of
https://github.com/furyhawk/agent_alpha.git
synced 2026-07-21 10:35:34 +00:00
1.1 KiB
1.1 KiB
name, description, tags, version
| name | description | tags | version | ||
|---|---|---|---|---|---|
| git-workflow | Git operations: commits, branches, PRs, and conflict resolution |
|
1.0.0 |
Git Workflow
Commit Messages
Format: <type>: <description>
Types: feat, fix, refactor, test, docs, style, chore
- Description starts with lowercase verb
- Max 72 characters for first line
- Add body for complex changes
Branch Workflow
- Create feature branch from main:
git checkout -b feat/description - Make changes in small, focused commits
- Push and create PR
- After review, squash-merge to main
Conflict Resolution
git fetch origingit rebase origin/main(or merge if team prefers)- For each conflict:
- Read both versions carefully
- Understand the intent of each change
- Resolve preserving both intents
- Test after resolving
git rebase --continue
Safety Rules
- Never force-push to main/master
- Never commit secrets, credentials, or .env files
- Always check
git diffbefore committing - Use
git stashbefore switching branches with uncommitted changes