Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Editing files as a collaborator on GitHub

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".

See this screenshot

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

like image 368
Geparada Avatar asked Mar 22 '19 12:03

Geparada


People also ask

Can collaborators edit GitHub?

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.

Can you edit files directly on GitHub?

Editing filesYou can edit files directly on GitHub in any of your repositories using the file editor.

What is the difference between collaborator and contributor in GitHub?

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.


1 Answers

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 the tree to the master branch: master branch restores the ability to edit the file.

like image 150
Augustin Riedinger Avatar answered Sep 28 '22 10:09

Augustin Riedinger