- 8 min read
Switch branches when Git says your changes would be overwritten
git switch stops with "Your local changes to the following files would be overwritten by checkout." Why only some files block it, and the ways past.
- 9 min read
Why your cherry-pick is 'now empty' when nothing conflicted
Git calls your cherry-pick "now empty, possibly due to conflict resolution" when nothing conflicted. Why it stops, and whose name your next commit picks up.
- 10 min read
Git says your branch is not fully merged. Is it?
When a squash-merged branch is gone from the remote and pruned, git branch -d refuses it. What -d compares, how to check main has your changes, when -D is safe.
- 9 min read
Update a Git branch without checking it out
git fetch origin main:main moves a branch while you stay on another. The refspec that does it, the refusals that protect you, and the diverged case.