Fig
Blog
Sign in
Blog

Manual Pages

Explore documentation for 400+ CLI tools
  • Menu
    • gt
    • gt auth
    • gt branch
      • gt branch
      • gt branch bottom
      • gt branch checkout
      • gt branch create
      • gt branch delete
      • gt branch down
      • gt branch edit
      • gt branch fold
      • gt branch info
      • gt branch rename
      • gt branch restack
      • gt branch split
      • gt branch squash
      • gt branch submit
      • gt branch top
      • gt branch track
      • gt branch untrack
      • gt branch up
    • gt changelog
    • gt commit
      • gt commit
      • gt commit amend
      • gt commit create
    • gt completion
    • gt continue
    • gt dash
      • gt dash
      • gt dash d
      • gt dash pr
    • gt docs
    • gt downstack
      • gt downstack
      • gt downstack edit
      • gt downstack get
      • gt downstack restack
      • gt downstack submit
      • gt downstack test
      • gt downstack track
    • gt feedback
      • gt feedback
      • gt feedback debug-context
    • gt log
      • gt log
      • gt log
      • gt log long
      • gt log short
    • gt repo
      • gt repo
      • gt repo init
      • gt repo name
      • gt repo owner
      • gt repo pr-templates
      • gt repo remote
      • gt repo sync
    • gt stack
      • gt stack
      • gt stack restack
      • gt stack submit
      • gt stack test
    • gt upstack
      • gt upstack
      • gt upstack onto
      • gt upstack restack
      • gt upstack submit
      • gt upstack test
    • gt user
      • gt user
      • gt user branch-date
      • gt user branch-prefix
      • gt user branch-replacement
      • gt user editor
      • gt user pager
      • gt user restack-date
      • gt user submit-body
      • gt user tips

gt upstack onto [branch]

Rebase the current branch onto the latest commit of the target branch and restack all of its descendants. If no branch is passed in, opens an interactive selector

Arguments

NameDescription
branchName of branch

    On this page

  • Arguments

Edit this page on Github →

Products

  • Scripts
  • Autocomplete
  • Dotfiles & Secrets
  • Fig AI
  • Access
  • Plugin Store
  • Manual Pages

Social

  • Twitter
  • Github
  • Discord

Resources

  • User Manual
  • Documentation
  • Debug

Company

  • Contact us
  • Privacy Policy
  • Blog

Backed By

Backed by Mango CapitalBacked by General Catalyst
Fig

Made with ❤️ in San Francisco
Copyright © 2025 Hercules Labs Inc.