Created
April 2, 2012 20:37
-
-
Save taiar/2287054 to your computer and use it in GitHub Desktop.
git hook para dump do database antes de comittar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# To enable this hook, rename this file to "pre-commit". | |
/c/Program\ Files/MySQL/MySQL\ Server\ 5.5/bin/mysqldump.exe --add-drop-table -h localhost -u root -ptaiar taghouse > database/dump.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Utilizando o cygwin