I want to configure git server on SugarCRM. There are some files and folders that need to be protected, and I want only some of them to be designed, etc. How is this possible with git?
Place protected files in a read-only submodule.
Or, use a preliminary technique to force read-only use in selected files.
Or, if others are developed in another branch and do not merge any of the protected files.
Good luck.
You can write a pre-receive hook and use this to make sure all files are in directories where your developers are allowed to write. You can use this hook on your server. It still allows users to commit files (in their local branch), but they can no longer be pushed to the server, and all clicks will fail.
If "protected" means "excluded from version control", you can do this by adding them to the .gitignore file.