Question

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?

Was it helpful?

Solution

The solution was working out how git-tfs constructs the remote URI.

In my case the following worked:

git reset --hard tfs/default

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top