There is a very convenient way to switch back to the previous n-th branch in the current worktree, e.g. after git switch next; git switch pu; git switch master; git switch --detach, git switch @{-3} switched to next (i.e. the 3rd-last branch in this worktree).
I frequently forget which branches I checked out, in which order, though, so I would need some help with determining the correct n.
Maybe this is a good opportunity to implement sort of an interactive mode for git switch, where I could pick from the list of recent branches.
There is a very convenient way to switch back to the previous n-th branch in the current worktree, e.g. after
git switch next; git switch pu; git switch master; git switch --detach,git switch @{-3}switched tonext(i.e. the 3rd-last branch in this worktree).I frequently forget which branches I checked out, in which order, though, so I would need some help with determining the correct
n.Maybe this is a good opportunity to implement sort of an interactive mode for
git switch, where I could pick from the list of recent branches.