This message was deleted.
# how-do-i
s
This message was deleted.
j
you'll need to pass the parent branch manually to that command for now, and then run
gt upstack restack
afterward. We can create a command that just prints the string of the parent to make that easier. (and also work on better support for interactive rebase options in
branch edit
, but that may take some time for us to prioritize/a kind open source contributor!)
👍 1
if you don't mind creating an alias, the following oneliner will work to output the parent of the current branch
git cat-file -p refs/branch-metadata/$(git symbolic-ref --short HEAD) | jq -r '.parentBranchName'
v
You could also enable the auto squash via Got config options, then the gt command should most probably "use" it