I was working on a project and shared a link of a GitHub file to another person, the person was not able to access it because he did not have access to the repository. I was surprised because the same person was able to access the file from the same…