Skip to content

Instantly share code, notes, and snippets.

@gederajeg
Created February 4, 2025 22:30
Show Gist options
  • Save gederajeg/69aee9b6bf2e17e76fa0d8e7ab70484d to your computer and use it in GitHub Desktop.
Save gederajeg/69aee9b6bf2e17e76fa0d8e7ab70484d to your computer and use it in GitHub Desktop.
Syncing forked repository from upstream/parent
The case is the Enolex repo I forked from engganolang
If the forked repo in gederajeg/enolex (main branch) is n-commits behind the upstream engganolang/enolex (main branch), and we want to sync, I'll do (with GitHub CLI):
gh repo sync gederajeg/enolex -b main
# results: ✓ Synced the "gederajeg:main" branch from "engganolang:main"
Tutorial: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment