gtl main
Update the current branch from remote main (or the remote default branch) using pull --rebase --autostash, then switch to the local main or master branch. Use --reset to hard-reset the current branch to the remote branch instead. Add --backup to create a safety branch before resetting.
Usage
bash
gtl main [flags]Full Help
text
Update the current branch from remote main (or the remote default branch) using pull --rebase --autostash, then switch to the local main or master branch. 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 [flags]
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
-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