Skip to content

gtl sync

Stage all changes, commit with a provided or default message, pull with rebase, and push

Aliases

sy

Usage

bash
gtl sync [flags]
gtl sync [command]

Subcommands

CommandDescription
gtl sync prsRetarget and update open PR branches

Examples

bash
gtl sync
gtl sync -m "chore: sync changes"
gtl sync prs --retarget --base main

Full Help

text
Stage all changes, commit with a provided or default message, pull with rebase, and push

Usage:
  gtl sync [flags]
  gtl sync [command]

Aliases:
  sync, sy

Examples:
gtl sync
gtl sync -m "chore: sync changes"
gtl sync prs --retarget --base main

Available Commands:
  prs         Retarget and update open PR branches

Flags:
  -h, --help             help for sync
  -m, --message string   Use provided commit message

Use "gtl sync [command] --help" for more information about a command.

Released under the MIT License.