Skip to content

Instantly share code, notes, and snippets.

@bitprophet
Created September 15, 2009 23:31
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 bitprophet/187757 to your computer and use it in GitHub Desktop.
Save bitprophet/187757 to your computer and use it in GitHub Desktop.
bitprophet.org:~ [master] $ cat /srv/git/repositories/fabric.git/hooks/post-update
#!/bin/sh
#
# An example hook script to prepare a packed repository for use over
# dumb transports.
#
# To enable this hook, make this file executable by "chmod +x post-update".
#exec git-update-server-info
exec git push --mirror git@github.com:bitprophet/fabric.git >> /tmp/fabric-to-github.log 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment