题
I want to reset to the state of a remote.
Using normal git I would do something like git reset --hard origin/HEAD
.
I am using git-tfs. Does anyone know how to do this with git-tfs?
解决方案
The solution was working out how git-tfs constructs the remote URI.
In my case the following worked:
git reset --hard tfs/default
其他提示
I found the following "built in" git tfs reset-remote
, I dont know if this is what you wanted to do Ben?
https://github.com/git-tfs/git-tfs/blob/master/doc/commands/reset-remote.md
不隶属于 StackOverflow