【发布时间】:2013-07-14 10:05:20
【问题描述】:
我正在借助 ANT 进行 GIT 克隆。我正在使用以下代码:
<target name ="deploy">
<sshexec host="ssh://user@rep_location/project_name.git"
username="username"
password=""
passphrase="passphrase"
trust="true"
command="git clone ssh://user@rep_location/project_name.git D:/dest"/
/>
</target>
位置“D:/dest”是我希望克隆存储库的必需文件夹。但它会抛出unknown host exception 的错误。
我尝试了一些与主机的组合,例如ssh://user@rep_location,但它也会返回服务器连接超时。
我们要求在结帐时提供密码。
此命令适用于 GIT BASH。
【问题讨论】: