Commands
>_
but move
Move a commit or branch to a different location.
Commit moves:
-
By default, commits are moved to be before (below) the target.
-
Use
--afterto move the commit after (above) the target instead. -
When moving to a branch, the commit is placed at the top of that branch's stack.
Branch moves:
- Move one branch on top of another to stack them.
- Move a branch to
zzto tear it off (unstack it).
Examples
Move a commit before another commit:
Move a commit after another commit:
Move a commit to a different branch (places at top):
Stack one branch on top of another:
Tear off (unstack) a branch:
Usage: but move <SOURCE> <TARGET> [OPTIONS]
Arguments
<SOURCE>— Commit/branch identifier to move (required)<TARGET>— Target commit/branch identifier, or zz to unstack a branch (required)
Options
-a,--after— Move the commit after (above) the target instead of before (below). Only valid for commit-to-commit moves
Last updated on