简体   繁体   English

Git入门-从远程TFS服务器进入本地存储库?

[英]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: 如果您的公司不希望您使用任何第三方组件,那么您只有两个建设性的选择:

  1. Convert everything to TFS 2013 Git repos - TFS 2013 supports choosing Git as the server repo. 将所有内容转换为TFS 2013 Git存储库-TFS 2013支持选择Git作为服务器存储库。
  2. Go work somewhere else - really I would have this as the first option based on your comments. 去其他地方工作-实际上,根据您的评论,我会优先选择此选项。 I require that any company I work for/with allow admin locally and to install anything not illegal that I need to do my job efficiently. 我要求与我合作/与之合作的任何公司都必须在本地进行管理员管理,并安装有效执行工作所需的任何非法物品。

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

相关问题 从TFS移植到Git - Porting from TFS to Git 如何从远程存储库获取拉动状态/最新状态? - How to get Pull Status/Up-To-Date status from Remote Repository? 每天将数据从远程服务器数据库传输到本地数据库 - Transfer data from remote server database into local database daily SSIS - 是否可以从本地服务器获取远程 SSIS Package(存储在 SSISDB 中),并在本地服务器上执行 - SSIS - Is it possible to fetch Remote SSIS Package (Stored in SSISDB) From Local Server, And execute on the Local Server 将调试器附加到本地TFS服务器上的自定义活动? - Attaching debugger to custom activity on local TFS server? TFS Express Edition-安装在服务器还是本地计算机上? - TFS express edition - installing on a server or local machine? 开始使用C ++和SQL Server - getting started with C++ and SQL Server 文件未从 Windows 传输到 Linux 远程服务器 - Files not getting transferred from Windows to Linux remote server 比较远程服务器和本地服务器中文件的 FileInfo - To compare FileInfo of file in remote server and local server 如何使用 LibGit2Sharp 将本地分支推送到远程存储库 - How to push a local branch to a remote repository using LibGit2Sharp
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM