Skip to content

gtl main-merge

Update your current branch from remote main (or remote default branch) using pull --rebase --autostash. Use --reset to hard-reset the current branch to the remote branch instead. Add --backup to create a safety branch before resetting.

Aliases

main

Usage

bash
gtl main-merge [flags]

Full Help

text
Update your current branch from remote main (or remote default branch) using pull --rebase --autostash. Use --reset to hard-reset the current branch to the remote branch instead. Add --backup to create a safety branch before resetting.

Usage:
  gtl main-merge [flags]

Aliases:
  main-merge, main

Flags:
      --backup          Create a safety backup branch before using --reset
  -b, --branch string   Remote branch to merge from (default: remote HEAD, then main/master)
  -h, --help            help for main-merge
  -r, --remote string   Remote to pull main branch from (default: tracking remote, then upstream/origin)
      --reset           Hard reset current branch to the remote branch instead of rebasing
  -y, --yes             Skip confirmation prompt when using --reset

Released under the MIT License.