Skip to content

Instantly share code, notes, and snippets.

@thewhodidthis
Created April 8, 2015 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thewhodidthis/c82bd2e00de64b04e43f to your computer and use it in GitHub Desktop.
Save thewhodidthis/c82bd2e00de64b04e43f to your computer and use it in GitHub Desktop.
Git post update hook
#!/bin/sh
#
# An example hook script to prepare a packed repository for use over
# dumb transports.
#
# To enable this hook, rename this file to "post-update".
unset GIT_DIR
cd /path/to/site
git pull
set GIT_DIR = "."
exec git update-server-info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment