How do I do get reset --hard origin/head (to reset everyhing locally to how the remote TFS is)

Feb 12, 2013 at 12:53 PM
Hey all.

I have tried to search the Internet, but without any luck.

Lets say I have done multiple commits, and my local tree is a mess, I would like to reset my local branch as how the TFS is.

Meaning, a normal git reset --hard origin/head?

(I guess similar to how it was when you did your first Git-TF clone)

Appreciate Any answers :-)
Feb 12, 2013 at 3:08 PM

Git-tf will create a remote branch pointing to last changeset/commit downloaded from TFS. The following command should do the trick:
git reset --hard origin_tfs/tfs
Feb 12, 2013 at 3:15 PM
Looks like this does the trick. Thank you! :-)