Ignoring files on server side

I am missing a feature for excluding some files on server side.
A good solution would be like git is using it with the .gitignore file.