$ git add --update $ stg refresh $ stg goto top-patch
stg-rebase - Move the stack base to another point in history
stg rebase [options] [--] <new-base-id>
Pop all patches from current stack, move the stack base to the given <new-base-id> and push the patches back.
If you experience merge conflicts, resolve the problem and continue the rebase by executing the following sequence:
Or if you want to skip that patch:
$ stg undo --hard $ stg push next-patch..top-patch
Do not push the patches back after rebasing.
Check for patches merged upstream.
Part of the StGit suite - see stg(1)