Skip to content

Instantly share code, notes, and snippets.

View lukatavcer's full-sized avatar
🍋
When life gives you lemons...

Luka Tavčer lukatavcer

🍋
When life gives you lemons...
View GitHub Profile
@dlaehnemann
dlaehnemann / contribute_github_without_write_access.md
Last active May 1, 2024 13:32
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.