如何使用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.
这是我的代码:
git tf clone -b --branches "<servername>" "$/Tech Consulting – Conversions/Infinity Conversion Tools/Conversion Engine"
推荐答案
问了这个问题七年后,我遇到了同样的问题.我在Windows 10上使用git bash.我使用Windows表情符号键盘(可通过Windows键加句点访问)在命令行上输入中等长度的破折号,这使我可以与尝试克隆的TFS分支的名称相匹配.
Seven years after this question was asked, I had the same problem. I am on Windows 10 using 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.
这篇关于如何使用git-tf克隆带有连字符的TFS存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!