previous | prev
check out an ancestor commit
Update to an ancestor commit of the current commit. When working with a stack
of commits, you can use
sl previous to move down your stack with ease.
--newestflag to always pick the newest of multiple parents commits. You can set
amend.alwaysnewestto true in your global Sapling config file to make this the default.
--mergeflag to bring along uncommitted changes to the destination commit.
--bookmarkflag to move to the first ancestor commit with a bookmark.
- Move 1 level down the stack:
- Move 2 levels down the stack:
sl prev 2
- Move to the bottom of the stack:
sl prev --bottom
|always pick the newest parent when a commit has multiple parents|
|update to the lowest non-public ancestor of the current commit|
|update to the first ancestor with a bookmark|
|do not activate the bookmark on the destination commit|
|discard uncommitted changes (no backup)|
|move active bookmark|
|merge uncommitted changes|
|require clean working directory|