4
在bash脚本中回答是
我正在尝试git clone通过bash脚本进行处理,但是第一次运行该脚本并且不知道服务器,但该脚本失败了。我有这样的事情: yes | git clone git@github.com:repo/repoo.git The authenticity of host 'github.com (207.97.227.239)' can't be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. Are you sure you want to continue connecting (yes/no)? 但是它忽略了yes。您知道如何强制git clone将密钥添加到已知主机吗?