- 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
git config --global --add --bool push.autoSetupRemote true
- https://git-scm.com/docs/git-config#Documentation/git-config.txt-pushautoSetupRemote
Change a specific commit
git rebase --interactive commit-hash~
e.g. git rebase -i 40df55a49b3574e88e50dac2bac147dd8e9d58cb~
Stage and amend the last commit Continue rebase