add a script that unloads the sql file somewhere specific for your project (but inside the project directory).
mysqldump -uroot -p my_db > my_project/my_db.sql
this is juts text, so git will select this file just like any other. therefore just
git add my_db.sql
git commit -m "the schema changed"
git push my_project github master
you can consider the following: