简体   繁体   English

如何使用 git-tf 克隆名称中带有连字符的 TFS 存储库

[英]How to Clone a TFS Repository with a Hyphen in the name Using git-tf

Please help!请帮忙! I've been banging my head against the wall all week on this one!我整个星期都在用头撞墙! When I attempt to clone an repository with a long dash in its name, I get a repository not found error.当我尝试克隆名称中带有长破折号的存储库时,出现存储库未找到错误。 I have tried all sorts of ways to escape it with not luck.我尝试了各种方法来逃避它,但没有运气。

Here is my code:这是我的代码:

git tf clone -b --branches "<servername>" "$/Tech Consulting – Conversions/Infinity Conversion Tools/Conversion Engine" 

Seven years after this question was asked, I had the same problem.问这个问题七年后,我遇到了同样的问题。 I am on Windows 10 using git bash.我在 Windows 10 上使用 git bash。 I used the Windows emoji keyboard (accessed by Windows key plus period) to enter a medium length dash on the command line, and this allowed me to match the name of the TFS branch I was trying to clone.我使用 Windows 表情符号键盘(通过 Windows 键加句点访问)在命令行上输入一个中等长度的破折号,这使我能够匹配我试图克隆的 TFS 分支的名称。

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

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