mysql - Export and import database on Git push and pull -
I need to sync my database between two local computers, without interrupting one server. After some research, I thought I could use the Git hook to work for me.
 What I basically want to do is to run        I could not find any specific hook, and   Has anyone got an answer for this?       This solution uses by Ben Kulbertis to use pre-commit and post-merge git hooks . works like a charm!       git push  on mysqldump   mysqlimport  at  git drag  and from the remote repository For this. I tried hooking up  pre-commit , but it did not add the SQL file to the existing file. I then tried  ready-made , but without luck.   
 
  
Comments
Post a Comment