For a git repository, if I have read-only permission, can I create a branch and modify the source code in my branch? Or do I have to fork the repository?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s not entirely clear what you’re asking. I believe what you’re asking is “if there is a read-only repo on disk, can you add your own branch to it?” No. The metadata area generally all has the same permissions. You’ll need to clone it, and make the change in your fork.