你可以使用以下命令将引用设置为其他提交记录:git update-ref refs/remotes/origin/master <commit-sha1 or tag> 这将使远程分支origin/master指向您指定的提交。