Resources
- Git flight rules
- Never use git submodules
- You Should Squash Merge to main
- How I configure my Git identities
- Commit Often, Perfect Later, Publish Once: Git Best Practices
Useful Settings
Auto-set remote on push:
git config --global --add --bool push.autoSetupRemote trueSee push.autoSetupRemote.
Change a Specific Commit
git rebase -i <commit-hash>~Then stage and amend the relevant commit, continue rebase.
Worktrees
git-worktree — check out multiple branches in separate directories from the same repository.