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 philipp.kr...@flashpixx.de wrote:
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 patterns, which should be never
pushed into the repo. I would like to do this with a hook, check the pushed
filelist and reject the push, if some filepattern is found
Is this the correct way or is there a better solution?
Philipp
--
You received this message because you are subscribed to the Google Groups
Git for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an
email to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups Git
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.