-1

I created a cron job to create a dump of my mysql database and add it to my github repo. But it doesn’t push it to the master it works until the commit. But it doesn’t push it.

/usr/local/mysql/bin/mysqldump -u root -proot1234 core > ~/dbdump/dump.sql

cd ~/dbdump
git add dump.sql
git commit -m "test"
git push origin master
*/5 * * * * /Users/Anjula/test.sh

1 Answers1

0

The problem was I haven’t set up the ssh keys