Resources

Useful Settings

Auto-set remote on push:

git config --global --add --bool push.autoSetupRemote true

See 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.