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

Untitled

By: a guest on May 1st, 2012  |  syntax: None  |  size: 0.54 KB  |  hits: 18  |  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. How can I manually run the hook post-receive on git?
  2. cannot run post-receive: No such file or directory
  3.        
  4. # Print the log with full hashes and commit subject, so that you can
  5. # figure out which hashes to use for the FROM and TO range.
  6. /path/to/repo$ git log --pretty=%H %s
  7.  
  8. # assuming the FROM commit identifies as 999988887777
  9. # and te TO commit identifies as 000011112222
  10. # (Note: use the full length hashes; I've shortened them for the example)
  11. /path/to/repo$ .git/hooks/post-receive <<MARK
  12. 999988887777 000011112222 refs/heads/master
  13. MARK