Use a separate branch for your work. That is the simplest workflow that stays safe.
Recommended setup:
main on your fork = clean mirror of upstream/main
my-work branch = where you actually code
Practical flow:
- Update local
main from upstream
git checkout main
git fetch upstream
git merge upstream/main
git push origin main
- Do your work on a branch
git checkout -b my-work
# edit, commit
git push origin my-work
- When upstream changes, bring them into your branch
git fetch upstream
git checkout main
git merge upstream/main
git checkout my-work
git merge main
- Open PR from
my-work on your fork to openai/parameter-golf:main
Use a separate branch for your work. That is the simplest workflow that stays safe.
Recommended setup:
mainon your fork = clean mirror ofupstream/mainmy-workbranch = where you actually codePractical flow:
mainfrom upstreamgit checkout -b my-work # edit, commit git push origin my-workmy-workon your fork toopenai/parameter-golf:main