Git Productivity Tips
1. Interactive Rebase
git rebase -i HEAD~5
2. Git Bisect
git bisect start / bad / good v1.0
3. Git Stash
git stash push -m "work in progress"
4. Aliases
git config --global alias.co checkout
5. Worktrees
git worktree add ../hotfix-branch hotfix
6. Git Hooks
.husky/pre-commit with lint-staged
7. Cherry-Pick
git cherry-pick abc123
8. Reflog
git reflog to recover lost work
9. Conventional Commits
feat: / fix: / docs:
10. GitHub CLI
gh pr create --fill
More: https://verdoyant.pages.dev/roi
Disclosure: Some links are affiliate links.
Top comments (0)