Git Tricks I Keep Having to Look Up

Another trail of breadcrumbs for myself…me being the kind of guy I am, I try to do things the “git” way so I don’t piss off those upstream who might otherwise not have the energy to deal with another PR.

Sync Fork with Upstream

Git Squash

Reverting Git Commits

Switching branches

Push.default warning

The Git Workflow (according to Atlassian)

Switching to SSH for an existing local repo

The classic…