I need to add some global descriptions ( like howto use the specific repository and other instructions) to a git repository.
Is there a way to assure, that changes can for example only be tracked on master branch and unique for all other branches?
Thank you and best regards,
M.S.
Not really. Within a single repository, you could use a pre-commit hook script to reject any commits modifying those files which aren’t being made on the master branch. But, to affect clones of the repository, the hook script would need to be setup in those as well. And even with that hook in place it’s easy to bypass that check.