moves / git http / git daily

Git commands for daily work

Ninety percent of git use is this handful of commands. Learn `switch` and `restore` — they split the overloaded `checkout` into two clear jobs.

#git#branch#commit#rebase
bash

git switch -c feature/search      # new branch
git add -p                        # stage hunks interactively
git commit -m "Add search filter"
git push -u origin feature/search

git fetch origin
git rebase origin/main            # replay your work on top of main
git log --oneline --graph -20

Related

WWADD — Choose the tool. Make the move. Build the stack.

FREE REFERENCE · NO LOGINCONTACTPRIVACYTERMS