1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-30 09:33:52 +02:00
tldr/pages/common/jj.md

38 lines
1 KiB
Markdown
Raw Normal View History

# jj
> Jujutsu, a version control system.
> Some subcommands such as `log`, `desc`, `new`, `git`, etc. have their own usage documentation.
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/>.
- Update description of the revisions specified by given revsets (e.g. `B::D`, `A..D`, `B|C|D`, etc.):
2025-08-25 06:29:49 -07:00
`jj {{[desc|describe]}} {{[-m|--message]}} "{{message}}" {{[-r|--revision]}} {{revsets}}`
2025-08-25 06:29:49 -07:00
- Create a new commit/revision on top of a given revision:
`jj new {{revset}}`
- Create a new merge commit on top of multiple revisions:
`jj new {{revset1 revset2 ...}}`
2025-08-25 06:29:49 -07:00
- Update the working copy to point to a revision:
`jj edit {{revset}}`
- Undo the previous command (which may itself have been `undo`):
`jj undo`
- Execute a jj subcommand without snapshotting the working copy:
`jj --ignore-working-copy {{subcommand}}`
- Execute a jj subcommand at an operation:
`jj {{[--at-op|--at-operation]}} {{operation}} {{subcommand}}`
- Display help for a specific subcommand (like `new`, `commit`, `desc`, etc.):
`jj help {{subcommand}}`