简体   繁体   English

Git-tfs重置为远程

[英]Git-tfs reset to remote

I want to reset to the state of a remote. 我想重置为远程状态。

Using normal git I would do something like git reset --hard origin/HEAD . 使用普通的git我会做一些像git reset --hard origin/HEAD

I am using git-tfs. 我正在使用git-tfs。 Does anyone know how to do this with git-tfs? 有谁知道如何用git-tfs做到这一点?

The solution was working out how git-tfs constructs the remote URI. 解决方案是研究git-tfs如何构造远程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? 我发现以下“内置” git tfs reset-remote ,我不知道这是不是你想做的Ben? https://github.com/git-tfs/git-tfs/blob/master/doc/commands/reset-remote.md https://github.com/git-tfs/git-tfs/blob/master/doc/commands/reset-remote.md

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM