[英]Getting started with Git - pull into local repository from a remote TFS server?
I started here, by creating a new local Git repository: 我从这里开始,创建一个新的本地Git存储库:
It seems that Visual Studio supports most of the common Git operations. 似乎Visual Studio支持大多数常见的Git操作。 However, I cannot pull the whole folder structure from a remote TFS server.
但是,我无法从远程TFS服务器提取整个文件夹结构。 I found a way to push changes to a TFS server, just not the other way around:
我找到了一种将更改推送到TFS服务器的方法,但并非相反:
Is there a way to do the initial pull? 有没有办法进行初始拉动? Preferably without installing any 3rd party software/tools - my company is really anxious about putting any unauthorized apps on the workstation.
最好不要安装任何第三方软件/工具-我的公司真的很担心在工作站上放置任何未经授权的应用程序。 If not, what are my options?
如果没有,我有什么选择?
Also, are there any downsides of this approach? 另外,这种方法是否有缺点? Known issues, etc.
已知问题等
A couple words on why I need this. 关于为什么我需要这个的几句话。 We have a development branch which gets locked every day for several hours, or more, to allow for build or merge to happen.
我们有一个开发分支,每天都会锁定几个小时或更长时间,以允许进行构建或合并。 You can't commit during this time.
您在这段时间内无法提交。 Also more than one commit per day is considered bad practice here.
每天超过一次提交也被认为是不好的做法。 That's why making another TFS branch would not help much.
这就是为什么建立另一个TFS分支没有太大帮助的原因。 And no, I don't like using shelvesets.
不,我不喜欢使用架子集。 Therefore I would prefer to be able to commit as often as needed, without thinking about code being in a perfectly working state.
因此,我希望能够根据需要频繁提交,而不必考虑代码处于完美的工作状态。
There is a portable Git version that can rescue in such cases. 有一个便携式Git版本可以在这种情况下进行救援。 No guarantees, YMMV.
没有保证,YMMV。
The only way to clone a TFVC repository is to use Git-TF. 克隆TFVC存储库的唯一方法是使用Git-TF。 You do not need to 'install' Git-TF as it is portable.
您无需“安装” Git-TF,因为它是便携式的。
If your company does not want you to use any third party components then you have only two constructive choices: 如果您的公司不希望您使用任何第三方组件,那么您只有两个建设性的选择:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.