scripts and hooks for use with a centralized git repo
Shell Python
Switch branches/tags
Nothing to show
Latest commit 080aad7 Apr 14, 2011 @stephenh stephenh post-receive-hudson: Default USER_EMAIL to the committer's email addr…

Patch by Aaron Boxer.



Tweaks for using git in a corporate/close-team environment.


  • checkout: does the right thing for creating/tracking a new or existing remote branch
  • push: pushes only the current branch to origin
  • pull: pulls changes down but with rebase-i-p to avoid same-branch merges and commit replays

Server-side Hooks

See the individual scripts for documentation, but an overview:

Client-side Hooks

Bootstrapping Scripts

Install Server-side Hooks

  • Download/clone the gc repo to something like /srv/git/gc
  • Edit your_repo.git/hooks/post-receive and your_repo.git/hooks/update to call the gc hooks as appropriate


  • Install approach for scripts
  • Install for client hooks