Skip to content

Instantly share code, notes, and snippets.

@ubermuda
Created January 26, 2010 18:37
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ubermuda/287084 to your computer and use it in GitHub Desktop.
ash@parangon:~/tmp$ ls -la template/hooks/post-checkout
-rwxr-xr-x 1 ash ash 21 2010-01-26 19:28 template/hooks/post-checkout
ash@parangon:~/tmp$ cat template/hooks/post-checkout
#!/bin/sh
echo 'foo'
ash@parangon:~/tmp$ git clone git@gamma.riskle.com:hooks.git --template=template/
Initialized empty Git repository in /home/ash/tmp/hooks/.git/
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (3/3), done.
ash@parangon:~/tmp$ cd hooks/ && git checkout
foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment