It's probably too late to answer this, but since I was looking for the answer too here it is: You can set system (and probaly also global) config in /etc/gitlab/gitlab.rb
You should find the following section: ####### # Git # ####### ## Advanced setting for configuring git system settings for omnibus-gitlab internal git ## For multiple options under one header use array of comma separated values, eg. ## { "receive" => ["fsckObjects = true"], "alias" => ["st = status", "co = checkout"] } # omnibus_gitconfig['system'] = { "receive" => ["fsckObjects = true"] } Le lundi 5 mai 2014 13:26:43 UTC+2, 刘磊 a écrit : > > Not the hook, just config which can setup during the init. > > 在 2014年5月5日星期一UTC+8下午7时15分18秒,Sytse Sijbrandij写道: >> >> Looks like you need the Git Hooks that are in GitLab EE. >> >> On Thu, Apr 24, 2014 at 9:44 AM, 刘磊 <orphen...@gmail.com> wrote: >> > We want to setting some config to the repo like >> > 'receive.denynonfastforwards=true' and 'receive.denydeletes=true'. >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups >> > "GitLab" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an >> > email to gitlabhq+u...@googlegroups.com. >> > For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/224df410-ef5d-4883-a01c-0c7d33ce6441%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.