Skip to content

Instantly share code, notes, and snippets.

@taiar
Created April 2, 2012 20:37
Show Gist options
  • Save taiar/2287054 to your computer and use it in GitHub Desktop.
Save taiar/2287054 to your computer and use it in GitHub Desktop.
git hook para dump do database antes de comittar
#!/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
@taiar
Copy link
Author

taiar commented Apr 2, 2012

Utilizando o cygwin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment