gitcmds: Remove unused reset_helper()