GH-REPO-SYNC(1) GitHub CLI manual GH-REPO-SYNC(1) (NAME) gh-repo-sync - (SYNOPSIS) gh repo sync [] [flags] (DESCRIPTION) . . (fast-forward) --force (hard reset) . . . --source . (OPTIONS) -b, --branch ( [ ]) --force (hard reset) -s, --source (EXIT CODES) 0: 1: 2: 4: : . . (EXAMPLES) # $ gh repo sync # $ gh repo sync --branch v1 # $ gh repo sync owner/cli-fork # $ gh repo sync owner/repo --source owner2/repo2 (SEE ALSO) gh-repo(1) Sep 2026 GH-REPO-SYNC(1)