Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Sep 16th, 2012  |  syntax: None  |  size: 0.15 KB  |  hits: 5  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Create git hook
  2. cat > hooks/post-receive << EOF
  3.  
  4. #!/bin/sh
  5. GIT_WORK_TREE=/root/www
  6. export GIT_WORK_TREE
  7. git checkout -f
  8. EOF
  9.  
  10. chmod +x hooks/post-receive