I am pretty sure people have faced this issue before, but I am not able to find any solution.
I have been working on an android library and plan to make it open source by putting it on GitHub. I would like to, however, only expose the maven upload creds to some specific authorised users - the core maintainers of the library.
How is this possible? If I store the username and password in a file and add it to gitignore, I won't be able to share it with anyone else via GitHub. However, if I do add the file to git, it will end up going to a public repo and being shared with everyone.
Is there some way to specify in git that a given file should only be accessed by people whose email ids fall in a specified list? Am I missing something very obvious?