Collaborate with GitHub Organizations
A GitHub organization allows a team (or an individual like me) to collaborate on related repositories. The organization owner(s) manage member(s) and repositories (repos). Each repo can be public or private, and members can have one of 5 permission levels with increasing level of control/danger: read, triage, write, maintain or admin. Organization and repo membership are managed, respectively, with the Settings menu in the upper right-hand corner.
References
- How to Create a GitHub Organization From Scratch (GeeksforGeeks)
- What Are GitHub Organizations and Should You Use One? (How-To Geek)
- GitHub Organizations and Teams Documentation (GitHub)
- Managing an organization (git-scm.com)
My GitHub Organizations
I belong to a variety of GitHub Organizations:
- My Organizations
- UW-Madison Organizations:
- CU-Boulder Environmental Organizations:
- Oglala Lakota College (OLC)
Organization Profile README
An optional special repo in an organization, .github, can be used to provide an organization-level README and default settings. I use mine to provide a brief introduction to an organization and links to its resources. For instance, see the .github/README.md file in my byandell-envsys and byandell-sysgen repositories. The envsys README.md is very simple, providing a one-paragraph intro and links to resources. In contrast, the sysgen README.md has dropdown sections to help organize multiple repos. This is done with old style HTML code:
<details>
<summary>QTL Repos</summary>
<br>
...
</details>
Organization Authorization (OAuth)
Prompts:
- Fix github sync issue: You don’t have permissions to push to “byandell-sysgen/qtlnet” on GitHub. Would you like to create a fork and push to it instead?
- I don’t see “Applications” on https://github.com/organizations/byandell-sysgen/settings/profile
Responses:
Root Cause
byandell-sysgen/qtlnetis hosted under a GitHub Organization (byandell-sysgen, active and not archived).- Your local
originremote was configured with HTTPS (https://github.com/byandell-sysgen/qtlnet.git), which routes sync/push in the IDE through its GitHub OAuth app. GitHub organizations block unapproved third-party OAuth apps by default, causing the IDE to report no push permission and offer to fork. - Meanwhile, your SSH key is already authenticated to GitHub as
byandell(ssh -T git@github.comconfirmed:Hi byandell! You've successfully authenticated).
Repo Fix Applied
-
Updated
.git/configto switchoriginfrom HTTPS to SSH:git@github.com:byandell-sysgen/qtlnet.git -
Verified read-only connectivity via
git ls-remote origin, which resolvedrefs/heads/mastercleanly over SSH.
You can now stage, commit, and sync/push directly to byandell-sysgen/qtlnet from the IDE or terminal (no fork needed).
Switching origin to SSH git@github.com:byandell-sysgen/qtlnet.git bypasses OAuth app restrictions, so git push / IDE sync should work without changing any GitHub web settings.
Organization-level Fix
Optional (for other HTTPS repos in
byandell-sysgen): If you also want HTTPS/OAuth syncing in the IDE to work for other repositories in thebyandell-sysgenorganization without switching each one to SSH, go to GitHub → Settings → Applications → Authorized OAuth Apps → select your IDE’s GitHub OAuth app → click Grant next tobyandell-sysgen(or adjust Third-party access → OAuth application policy in thebyandell-sysgenorganization settings).
“Applications” is in your Personal GitHub settings, not on the Organization settings page. Here are the two exact places:
Option 1 — Right on the byandell-sysgen Organization Settings page you have open
- In the left sidebar under Third-party Access, click OAuth app policy (
https://github.com/organizations/byandell-sysgen/settings/oauth_application_policy). - Approve any pending OAuth app requests (click Review → Grant access), or remove OAuth app access restrictions for the org if you prefer.
Option 2 — From your Personal GitHub Settings (to grant a specific IDE app)
- Click your profile avatar (top-right corner of GitHub) → Settings.
- In the left sidebar under Integrations, click Applications → open the Authorized OAuth Apps tab.
- Click your IDE’s OAuth app (e.g., Visual Studio Code / GitHub for VS Code) → under Organization access, click Grant next to
byandell-sysgen.