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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.