[git-users] ignore files with hard definition

2014-01-30 Thread Philipp Kraus
Hello, can I define on my server repository, that the ignored file patterns are hard defined. My problem is, that each use can modify the gitignore, but I get with this modification files into the server repo, which should not be there, so I would like to define in the server (bare) repo files

Re: [git-users] ignore files with hard definition

2014-01-31 Thread Gergely Polonkai
Hello, I don't know of any method built into git, but how about denying commits that modify the .gitignore file(s)? This way your hook must only check if the commit has modifications to any files called .gitignore. Cheers, Gergely On 31 January 2014 08:25, Philipp Kraus wrote: > Hello, > > ca

Re: [git-users] ignore files with hard definition

2014-01-31 Thread Dale R. Worley
> From: Gergely Polonkai > I don't know of any method built into git, but how about denying commits > that modify the .gitignore file(s)? This way your hook must only check if > the commit has modifications to any files called .gitignore. My understanding is that you can write such a hook, one t