Skip to content

gtl fork-sync

Fetch upstream, hard reset branch to upstream branch, and force-push to fork remote with a safety backup branch.

Aliases

fs

Usage

bash
gtl fork-sync [flags]

Full Help

text
Fetch upstream, hard reset branch to upstream branch, and force-push to fork remote with a safety backup branch.

Usage:
  gtl fork-sync [flags]

Aliases:
  fork-sync, fs

Flags:
  -b, --branch string     Branch to sync (defaults to current branch)
  -h, --help              help for fork-sync
      --no-push           Reset locally but do not force-push
      --origin string     Fork remote name to push to (default "origin")
      --upstream string   Upstream remote name (default "upstream")
  -y, --yes               Skip confirmation prompt

Released under the MIT License.