Files
cheatsheet-tldr/tldr/jj-prev
2026-01-13 00:19:20 +00:00

30 lines
688 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# jj prev
> Move the working-copy commit to a parent revision.
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-prev>.
- Move the working-copy commit to the previous parent revision:
`jj prev`
- Move the working-copy commit a number of revisions backward:
`jj prev {{offset}}`
- Edit the parent revision directly, instead of creating a new working-copy commit:
`jj prev {{[-e|--edit]}}`
- Create a new working-copy commit instead of editing the parent revision directly:
`jj prev {{[-n|--no-edit]}}`
- Jump to the previous conflicted parent:
`jj prev --conflict`