In a sh script I tried push file automatically, but when you do "git pull" the repository ssh via and then in "git push" command ask me:
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)?
I tried this:
echo "yes\n" | git push
git push << EOF
yes
EOF
yes "yes" | git push
printf '%s\n' yes | git push
but doesn't work, I don't know if this command works different