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
Post a Comment