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

html - Cut text on left side inside button while centering -

plugins - CodeIgniter support on netbeans 8.0 -

php - Selecting items from MySQL for a status update feed efficiently while accounting for possible spam -