I'm trying to do a
git clone trough a bash script, but the first time that I run the script and the server is not known yet the script fails. I have something like this:
yes | git clone firstname.lastname@example.org:repo/repoo.git
The authenticity of host 'github.com (22.214.171.124)' 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)?
But it's ignoring the
yes. Do you know how to force
git clone to add the key to the known hosts?