[Cialug] git in structured environment

Eric Junker eric at eric.nu
Wed Jul 9 12:39:40 CDT 2008


Colin Burnett wrote:
> I'll jump straight to my question: any solutions for using git in a
> structured environment?  git was intentionally designed to be
> distributed (I believe this was Linus' #1 requirement) and it does
> that well.  However, this means there are immediate problems when
> wanting to use this in a structured environment (likewise trying to
> CVS/SVN in a distributed manner) when you want a copy of all code on a
> designated machine (notably for backup purposes).  That can surely be
> achieved by pushing changes to the backup server but seems wide open
> to forgetting to do so.
> 
> Does anyone use git in a structured environment or know/seen/read of
> any solutions?

git has a post-commit hook which you could probably use to automatically 
do a 'git push' after every commit.

echo 'git push' > .git/hooks/post-commit

Eric



More information about the Cialug mailing list