From: Jakub Narębski Date: Thu, 21 Jul 2016 11:21:57 GMT Subject: Re: Server-side preventing some files from being overwritten Message-ID: <5790B055.4060603@gmail.com> In-Reply-To: W dniu 2016-07-14 o 18:57, Stefan Beller pisze: > On Thu, Jul 14, 2016 at 8:31 AM, Thorsten Glaser wrote: >> Hi *, >> >> is there a way, for example with some sort of pre-receive hook, >> to prevent some files from being overwritten by a push? > > pre-receive hooks are a thing! Or you can use third-party tools with support for such cases, such as Gitolite. VREFs allow to restrict pushes by the filename, see http://gitolite.com/gitolite/vref.html#NAME (though I am not sure if it checks only the end state, or if it checks every commit that was pushed). Best, -- Jakub Narębski