gitignore - GIT - how to enforce file exclusion by server? -


i want enforce file exclusion git server. users should not able push file doesn't match rules central repository. tried setup rules in /info/exclude on git server side, ignore it.

is there way ? (excluding hooks solution).

thanks help

you ask users add system config:

git config --system core.excludesfile /share/path/to/system/wide/gitignore 

that way, users referencing shared (gitignore) file.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -