Skip to content

gtl sync prs

Parent command: gtl sync.

Retarget open pull requests to a chosen base branch and request GitHub branch updates, collecting any PRs that still have merge conflicts

Usage

bash
gtl sync prs [flags]

Examples

bash
gtl sync prs
gtl sync prs --repo owner/repo --base main
gtl sync prs --all-authors --retarget

Full Help

text
Retarget open pull requests to a chosen base branch and request GitHub branch updates, collecting any PRs that still have merge conflicts

Usage:
  gtl sync prs [flags]

Examples:
gtl sync prs
gtl sync prs --repo owner/repo --base main
gtl sync prs --all-authors --retarget

Flags:
      --all-authors   Include PRs from all authors instead of only your PRs
      --base string   Base branch to target (defaults to the repository default branch)
  -h, --help          help for prs
      --repo string   Repository in owner/repo format (defaults to current git remote)
      --retarget      Retarget PRs that are not already using the selected base branch (default true)

Released under the MIT License.