11

I was wondering in GitHub, how do I view the permissions I have to a particular repository? If the URL is

https://github.com/org/repo

Where can I find out what (if any) permission I have?

satish
  • 703
  • 5
  • 23
  • 52

2 Answers2

7

If the git repo is in github, open any file in the repo, then click 'edit', github will show something like this:

You’re editing a file in a project you don’t have write access to. We’ve created a fork of this project for you to commit your proposed changes to. Submitting a change to this file will write it to a new branch in your fork, so you can send a pull request.enter code here

Refer to this link:

How can I check write access to a remote Git repository ("can I push?")

wuchunfu
  • 137
  • 9
2

To check for which of the repositories you have access to (i.e. both forked and non forked)

Click on profile -> Settings -> Repositories

https://github.com/settings/repositories

Sachin Chillal
  • 393
  • 4
  • 6
  • I believe the original poster was asking about *any* GitHub repo, not just ones you own or that you have forked. – dave_k_smith Jul 16 '21 at 19:01
  • This is useful because it shows repositories I have access to even if I can't view the settings from the repository itself. I can't remember which repositories I have accepted an invitation to but this seems to include those. But it doesn't show full detail. Where do you look for this information, @dave_k_smith ? – binki Apr 30 '22 at 17:36