Skip to content

Instantly share code, notes, and snippets.

@andabak
andabak / contribute_github_without_write_access.md
Created December 13, 2022 11:25 — forked from dlaehnemann/contribute_github_without_write_access.md
contributing to github repo without write access: pull from origin repo, push to your own fork

Whenever I want to create pull requests to a repo that I don't have write access to, I:

  1. Fork the original repo to my account.
  2. Clone the original repo to my local machine.
  3. Add my fork as an additional remote and make it the push default.
  4. Make changes in a new branch locally.
  5. Push this branch to my fork.
  6. Create a pull request from there.