Each deletes a step: four commands, a branch switch, or a commit you did not mean.
Prune on fetch
--prune drops local refs to remote branches deleted upstream:
| |
Stale refs accumulate with branch churn; git branch -a --contains <commit> gets verbose and slow.
Merge or rebase without checking out the target
A fetch already placed the remote’s refs locally as origin/…, and a branch is just a commit reference — no checkout, pull or checkout-back:
| |
The prefix follows the remote name; origin is only the default.
Trigger a pipeline with an empty commit
Instead of appending blank lines to poke CI:
| |
Read a file from another branch
| |
No branch switch, no web UI.
Back to the previous branch
| |
Search the whole history
| |
git rev-list --all feeds every commit to git grep, so matches survive even where the line was later deleted — the search alias in the aliases note.
Log as a graph
| |
--oneline keeps hash and message on one line, making the graph readable at terminal width.