Denying external files in git
We have a common problem. We are using the repo tool to host multiple git repos in a build tree. Unfortunately, users keep adding (possibly with -f) and compiling files that are in other repositories. Example:
#ls
root/gitRepoA
root/gitRepoB
#cd root/gitRepoA
#git add -f ../gitRepoB/myFile
#git commit
Is there a way to avoid this?
EDIT: This is only possible when using the repo tool.
+3
source to share