【发布时间】:2019-05-23 17:54:35
【问题描述】:
我正在尝试从私人仓库安装文件。我正在使用 azure cli run 命令来调用这些操作。
运行命令如下所示:
az vm run-command invoke --name ${MONITOR_VM_NAME} \
--command-id RunShellScript \
--resource-group ${RSC_GRP_NAME} \
--scripts "
curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash
sudo yum -y install nodejs
cd /etc/
sudo git clone \${REPO_USER_NAME}:\${REPO_PASSWORD}@https://bar.visualstudio.com/Foo/_git/Eth-Netstats
"
不幸的是,我在输出中收到了这个:
致命:我不处理协议 ':@https'
我看过这里:
https://github.com/brackets-userland/brackets-git/issues/965
和
git: fatal: I don't handle protocol 'http'
但它似乎没有帮助。我会很感激这方面的任何指示
【问题讨论】:
-
将文字用户名和密码编码为
http或httpsURL 的语法为:https://user:password@host.example.com/text?passed&to=host。也就是说,user:password部分在https://部分之后,在主机名之前。 -
谢谢我这么傻。请添加为答案,以便我接受它