我的项目托管在 TFS-GIT 服务器中。我在 TFS 上合并拉取请求时遇到问题。一种选择是更新 TFS 服务器本身上的 git 配置以进行“合并 --no--ff”,因为时间紧迫和其他无法尽快完成的问题。我正在寻找解决此问题的方法
如果我将 .gitconfig 文件添加到存储库,并将 merge.ff 和 pull.ff 设置为 false,是否会覆盖在存储库级别应用的配置?git 会像那样工作吗?
任何帮助是极大的赞赏
我想在 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 任务进行安装,您可以在屏幕截图中看到这一点:
上述两种方法都会给出相同的错误:
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可以让我获取一些其他正确创建合并提交的分支,以便我可以正确地查看历史记录?
我正在尝试将TFS存储库迁移到git,但我遇到了一个问题.
查看TFS中此特定存储库的历史记录,看起来好像已将父级复制到新的TFS存储库中,然后稍后将父级无基础合并到其中(或类似的东西).
当我运行"git tfs clone"命令时,我收到错误:
git-tfs无法找到分支'$/x'与其父分支'$/y'之间的根变更集(即最后一次常见提交)...
是否可以使用git tfs clone限制历史记录?我知道我可以使用快速克隆,但这只能给我最后的提交.理想情况下,我想回到特定的更改集,或者排除没有共同父级的无基础合并变更集...
干杯!
我想重置为远程状态.
使用正常的git我会做类似的事情git reset --hard origin/HEAD.
我正在使用git-tfs.有谁知道如何用git-tfs做到这一点?
我使用 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 服务器实际上断开了套接字。
在与我们的一位服务器管理员交谈后,我发现我们的 …
我们在工作中使用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 ×7
git ×6
tfs ×5
azure-devops ×1
chocolatey ×1
cmd ×1
git-tf ×1
github ×1
powershell ×1
tfs2010 ×1
tls1.0 ×1