Pulls commits from --source upstream/repo into owner/repo, keeping a fork current with the project it derives from. Without --source, gh syncs from the fork's configured parent. Add --force to discard local diverging commits.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.