当 git tfs 无法创建合并提交时,它说
warning: this changeset 7504 is a merge changeset. But it can't have been managed accordingly because one of the parent changeset 7494 is not present in the repository! If you want to do it, fetch the branch containing this changeset before retrying...
根据文档,Note: if you see a warning, you could correct that by reseting the tfs remote to a previous commit. Then fetch the merged branch and retry to fetch the branch.
任何人都可以详细说明reseting the tfs remote to a previous commit
。虽然,我现在已经获取了合并的分支,但我不明白如何将其重置为之前对失败分支的提交。我不确定,但我必须这样做git checkout <hash of the previous commit>
吗?