github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

stephenh / git-central

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 33
    • 3
  • Source
  • Commits
  • Network (3)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

scripts and hooks for use with a centralized git repo — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Notes from awhile ago. 
stephenh (author)
Sat Aug 01 15:07:21 -0700 2009
commit  0affac639e4c5753a9cad2634c24f12d8b92e88b
tree    96b8b55f454fd4d38162e225a8760d4f955b0486
parent  0ef545513bc77af8f8c6136f6c09fdfe245bb404
git-central /
name age
history
message
file README.markdown Mon Dec 22 19:10:01 -0800 2008 Add some weak docs and samples for server-side ... [stephenh]
file VsSubversion.markdown Sat Aug 01 15:07:21 -0700 2009 Notes from awhile ago. [stephenh]
directory client/ Tue Nov 11 22:41:34 -0800 2008 Dropping post-checkout-rebase in favor of pull ... [stephenh]
directory scripts/ Tue Nov 11 23:30:22 -0800 2008 Add documentation for the scripts. [stephenh]
directory server/ Mon Dec 22 19:10:01 -0800 2008 Add some weak docs and samples for server-side ... [stephenh]
directory tests/ Fri Nov 14 20:55:10 -0800 2008 Remove candidate/topic auto-locking as it was t... [stephenh]
file workflow.markdown Wed Nov 12 20:09:31 -0800 2008 I guess non-READMEs don't need the master part. [stephenh]
README.markdown

Overview

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

Scripts

  • 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:

  • post-receive-commitnumbers: makes Subversion-like monotonically increasing commit numbers for every commit
  • post-receive-email: contrib email script with customizations for stuff like combined diffs
  • post-receive-gitconfig: auto-updates the git config+hooks on the server when updated in the repo
  • post-receive-hudson: auto-creates new jobs in Hudson when branches in git are created
  • post-receive-trac: updates trac tickets with messages referencing the commits
  • update-allow-tags-branches: contrib/example branch/tag enforcement script with customizations
  • update-ensure-follows: allows nomination of special branches (e.g. stable) that everyone must have merged
  • update-ensure-ticket-reference: enforces ticket references in commit messages (e.g. for trac)
  • update-lock-check: enforces locked/preserved branches
  • update-stable: enforces proper movement of stable

Client-side Hooks

  • commit-msg-trac: enforces ticket references in commit messages

Bootstrapping Scripts

  • create-gitconfig: creates a new DAG for managing repository-specific configuration (works with post-receive-gitconfig)
  • create-stable: creates a new DAG for the first release to merge in to (works with update-stable)

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
    • post-receive.sample and update.sample are good templates to use for calling multiple hooks

Todo

  • Install approach for scripts
  • Install for client hooks
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server