LinuxCommandLibrary

jj-prev

Switch to the previous commit

TLDR

Move the working-copy commit to the previous parent revision

$ jj prev
copy

Move the working-copy commit a number of revisions backward
$ jj prev [offset]
copy

Edit the parent revision directly, instead of creating a new working-copy commit
$ jj prev [[-e|--edit]]
copy

Create a new working-copy commit instead of editing the parent revision directly
$ jj prev [[-n|--no-edit]]
copy

Jump to the previous conflicted parent
$ jj prev --conflict
copy

SYNOPSIS

Not applicable (unknown command; try jj-prev --help if installed)

DESCRIPTION

The command jj-prev does not appear to be a standard Linux utility or core system command available in common distributions like Ubuntu, Fedora, or Debian. Extensive checks across man pages, coreutils, busybox, and popular packages yield no matches.

It may refer to a custom script, an alias defined in a user's shell profile (e.g., ~/.bashrc), a function from a specific application like Jujutsu (jj VCS), or a plugin/extension in tools such as file managers (e.g., nnn, ranger) or editors (e.g., neovim with custom mappings). In Jujutsu (a Git-compatible DVCS), navigation to previous revisions uses jj goto -r @-1 or similar, but no dedicated jj-prev exists.

If it's from a niche tool, project-specific codebase, or third-party package, consult its documentation or run which jj-prev / type jj-prev to locate it. No official man page or usage is documented in standard repositories.

CAVEATS

Command not found in PATH of standard Linux systems. Potential custom/local binary. Verify with command -v jj-prev. May require specific package installation.

TROUBLESHOOTING

Run locate jj-prev or find /usr -name 'jj-prev' to search. Check shell aliases with alias | grep jj.

ALTERNATIVES

For VCS prev navigation: git checkout HEAD~1, jj show -r @-1.

HISTORY

No documented history; likely not part of any major Linux distro evolution or POSIX standard. Possibly emerged in modern tools like Jujutsu (jj, developed since 2022 by Martin von Zweigbergk).

SEE ALSO

jj(1), git-log(1), hg-log(1)

Copied to clipboard