If you'd use `git checkout -` you wouldn't need `$current_ref`