Git Reference
Git Reference / Cheat sheet

24Daily cheat sheet

git switch main && git pull           # start fresh
git switch -c feature/thing            # new branch
git add -p                             # stage carefully
git commit -m "Describe the change"
git fetch && git rebase origin/main    # stay current
git push -u origin feature/thing       # share
git lg                                 # look around (alias)
git reflog                             # when in doubt