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 - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -