I am trying to make changes to a GitHub repository for which I have been invited as a collaborator. I can create new files and modify them, but when I tried to do any changes to an existent file I saw this message saying "You must be on a branch to make or propose changes to this file".
Then only after I push a commit through the terminal, I was able to modify this file on the GitHub pages. Is this an expected behavior?
Thanks for your time, Cheers
Collaborator access for a repository owned by a personal account. Collaborators on a personal repository can pull (read) the contents of the repository and push (write) changes to the repository.
Editing filesYou can edit files directly on GitHub in any of your repositories using the file editor.
A user who has read-only access to a private repo should be marked as a collaborator, in my understanding. A user who has permissions to a repo but no commits in that repo with any of email addresses associated with their github account would be a collaborator but not a contributor.
I got it:
I came to the source file using the search, hence the result I got was on a specific commit:
https://github.com/organisation/repo/blob/252e66a59e1b717df6b4467e4de025fcfd254a88/pages/file.ext
Changing the tree to the master branch: restores the ability to edit the file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With