git checkout before reset in case using a remote branch (not tag)