Partial writes from a failed install leave files as "local changes",
blocking the checkout. Reset to HEAD first so the switch always works.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Single-branch clones only track one branch. Reset the remote refspec
to '*' before fetching so any target branch can be checked out.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Prevents cryptic git errors on fresh machines or when switching branches.
Shows available branches in the error message for easier debugging.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fixes "pathspec did not match" error when switching to a branch that
doesn't yet have a local tracking ref on the target machine.
Also adds CD ripping tools install and output/cd directory creation.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>