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. - Use comma-separated commit IDs to move multiple commits together.
- 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 multiple commits before another commit:
Move a commit after another commit:
Move multiple commits after another commit:
Move a commit to a different branch (places at top):
Move multiple commits 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. Use comma-separated commit IDs for multi-commit moves (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