Created
April 28, 2014 19:54
-
-
Save dreamalligator/11382316 to your computer and use it in GitHub Desktop.
My current Git hooks.
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 | |
WEB_DIR=~/digitalvapor | |
# remove any untracked files and directories | |
git --work-tree=${WEB_DIR} clean -fd | |
# force checkout of the latest deploy | |
git --work-tree=${WEB_DIR} checkout --force | |
# if need to exclude some files from being cleaned | |
# git --work-tree=${WEB_DIR} clean -fd --exclude=<pattern> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment