Git Advanced 1 Commit History

Sub-skill of git-advanced: 1. Commit History (+2).

vamseeachanta b8da575 1.1 KB Updated

File contents

1. Commit History (+2)

1. Commit History

# Write good commit messages
git commit -m "feat(auth): add OAuth2 support

- Add Google OAuth provider
- Implement token refresh logic
- Add user profile sync

Closes #123"

# Keep commits atomic
# One logical change per commit

# Use conventional commits
# feat: new feature
# fix: bug fix
# docs: documentation
# style: formatting
# refactor: code restructure
# test: add tests
# chore: maintenance

2. Branch Strategy

# Feature branches from main
git checkout -b feature/add-auth main

# Hotfix branches from main
git checkout -b hotfix/fix-login main

# Keep branches short-lived
# Merge frequently

# Delete merged branches
git branch -d feature/add-auth

3. Rebase vs Merge

# Use rebase for:
# - Cleaning up local commits
# - Updating feature branch from main
git rebase main

# Use merge for:
# - Integrating feature into main
# - Preserving branch history
git merge --no-ff feature/add-auth

vamseeachanta/workspace-hub/tree/main/.agents/skills/_archive/operations/devtools/git-advanced/1-commit-history commit b8da575dcc

Frequently asked questions

npx skillmds@latest add vamseeachanta/git-advanced-1-commit-history