标签: git-tfs

在存储库中添加 .gitconfig 会覆盖我的全局 .gitconfig 文件配置吗?

我的项目托管在 TFS-GIT 服务器中。我在 TFS 上合并拉取请求时遇到问题。一种选择是更新 TFS 服务器本身上的 git 配置以进行“合并 --no--ff”,因为时间紧迫和其他无法尽快完成的问题。我正在寻找解决此问题的方法

如果我将 .gitconfig 文件添加到存储库,并将 merge.ff 和 pull.ff 设置为 false,是否会覆盖在存储库级别应用的配置?git 会像那样工作吗?

任何帮助是极大的赞赏

git tfs github git-tfs

5
推荐指数
0
解决办法
1903
查看次数

如何在 VSTS 中的托管代理上运行或安装工具

我想在 VSTS 上以管理员身份运行 cmd。

实际上,我正在尝试在 VSTS 托管代理上安装带有 Chocolatey 工具管理器的 git-tfs,因此我在 VSTS 命令行任务上运行以下命令:

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString(' https://chocolatey .org/install.ps1 '))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

或者,

另外,VSTS 还提供了 Chocolatey 任务进行安装,您可以在屏幕截图中看到这一点:

在此输入图像描述

上述两种方法都会给出相同的错误:

[错误]System.Management.Automation.RuntimeException:将 Chocolatey 安装到默认文件夹需要管理权限。请从提升的提示符运行。如果需要以非管理员身份安装,请参阅https://chocolatey.org/install了解详细信息和替代方案。---> System.Management.Automation.RuntimeException:将 Chocolatey 安装到默认文件夹需要管理权限。请从提升的提示符运行。如果需要以非管理员身份安装,请参阅https://chocolatey.org/install了解详细信息和替代方案。

powershell cmd git-tfs chocolatey azure-devops

5
推荐指数
1
解决办法
4107
查看次数

从具有多个分支及其历史记录的 TFS 迁移到 GIT

C:\>git tf clone https://companyname.visualstudio.com/DefaultCollection $/companyname/Main OldTFS --deep

这只能获取我的主分支历史记录。那是git tf

C:\>git tfs clone https://companyname.visualstudio.com/DefaultCollection $/companyname/Main --with-branches

在其中一个合并变更集获取几个分支后,此操作失败Please report this case to the git-tfs developpers! (report here : https://github.com/git-tfs/git-tfs/issues/461 )git branch给我这个

Release/20120719.1
Sprint/Sprint044
Sprint/Sprint045
Sprint/Sprint047
Sprint/Sprint048
Sprint/Sprint049
Sprint/Sprint050
*master
Run Code Online (Sandbox Code Playgroud)

我已经分支到 Sprint085 以及相当多的发布分支。那是git tfs

有什么方法git tf可以让我获取一些其他正确创建合并提交的分支,以便我可以正确地查看历史记录?

git tfs version-control-migration git-tfs git-tf

4
推荐指数
1
解决办法
7520
查看次数

具有部分历史记录的git tfs clone

我正在尝试将TFS存储库迁移到git,但我遇到了一个问题.

查看TFS中此特定存储库的历史记录,看起来好像已将父级复制到新的TFS存储库中,然后稍后将父级无基础合并到其中(或类似的东西).

当我运行"git tfs clone"命令时,我收到错误:

git-tfs无法找到分支'$/x'与其父分支'$/y'之间的根变更集(即最后一次常见提交)...

是否可以使用git tfs clone限制历史记录?我知道我可以使用快速克隆,但这只能给我最后的提交.理想情况下,我想回到特定的更改集,或者排除没有共同父级的无基础合并变更集...

干杯!

git tfs git-tfs

4
推荐指数
1
解决办法
1074
查看次数

Git-tfs重置为远程

我想重置为远程状态.

使用正常的git我会做类似的事情git reset --hard origin/HEAD.

我正在使用git-tfs.有谁知道如何用git-tfs做到这一点?

git git-tfs

3
推荐指数
1
解决办法
1378
查看次数

(git tfs fetch)TF400324:Team Foundation 服务不可用,底层连接已关闭

我使用 git-tfs 已经快 5 年了,然后有一天,我在运行时遇到以下错误git tfs fetch

TF400324: Team Foundation services are not available from server https://tfs.company.com/tfs/foo.
Technical information (for administrator):
  The underlying connection was closed: An unexpected error occurred on a send.
The underlying connection was closed: An unexpected error occurred on a send.
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host
Run Code Online (Sandbox Code Playgroud)

我什至打开 Fiddler 看看发生了什么,当我的笔记本电脑尝试连接时,TFS 服务器实际上断开了套接字。

在与我们的一位服务器管理员交谈后,我发现我们的 …

git tfs git-tfs tls1.0

2
推荐指数
1
解决办法
5064
查看次数

执行git tfs rcheckin时出现TF26198错误

我们在工作中使用TFS 2010,并且我使用git-tfs,因此我可以在本地使用git.我最近升级了我的机器,并复制了我所有的本地存储库文件夹.

我似乎能够从TFS拉出并在本地提交.但是,当我这样做时git tfs rcheckin,我现在得到错误:

TF26198: The work item does not exist, or you do not have permission to access it.
Run Code Online (Sandbox Code Playgroud)

但它在使用时确实有效git tfs checkintool.

我推测我收到此错误是因为原件git tfs clone是在另一台计算机上完成的.阅读git-tfs文档,听起来我应该git clone从我的旧机器(而不是复制),然后a git tfs bootstrap.但是,尝试这个时,我仍然会得到同样的错误.

可能导致这种情况的任何想法?我能想到的另一个不同之处是我的旧机器安装了VS2010和VS2012,而我的新机器只安装了VS2012.

git tfs tfs2010 git-tfs

1
推荐指数
1
解决办法
942
查看次数