在sh脚本中,我尝试自动执行push文件,但是当您通过“ git pull”存储库ssh进行操作,然后在“ git push”命令中询问我:
ECDSA key fingerprint is 11:00:22:33:44:55:66:77:88:99:10:11:12:13:14:15.
Are you sure you want to continue connecting (yes/no)?
我尝试过:
echo "yes\n" | git push
git push << EOF
yes
EOF
yes "yes" | git push
printf '%s\n' yes | git push
但是不起作用,我不知道该命令是否起作用