mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-03 20:55:51 +02:00
jj-{commit, describe, edit, new, squash}: add pages (#17047)
This commit is contained in:
parent
9bea2a7446
commit
79537c9533
5 changed files with 81 additions and 0 deletions
16
pages/common/jj-commit.md
Normal file
16
pages/common/jj-commit.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# jj commit
|
||||
|
||||
> Update the description and create a new change on top.
|
||||
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-commit>.
|
||||
|
||||
- Open editor to write the commit message and then create a new empty commit on top:
|
||||
|
||||
`jj commit`
|
||||
|
||||
- Commit with the given message:
|
||||
|
||||
`jj commit {{[-m|--message]}} "{{message}}"`
|
||||
|
||||
- Interactively choose which changes to include:
|
||||
|
||||
`jj commit {{[-i|--interactive]}}`
|
16
pages/common/jj-describe.md
Normal file
16
pages/common/jj-describe.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# jj describe
|
||||
|
||||
> Update the change description or other metadata.
|
||||
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-describe>.
|
||||
|
||||
- Update the description of the current change:
|
||||
|
||||
`jj {{[desc|describe]}}`
|
||||
|
||||
- Update the description of given revsets:
|
||||
|
||||
`jj {{[desc|describe]}} {{revsets}}`
|
||||
|
||||
- Update the description to the given message:
|
||||
|
||||
`jj {{[desc|describe]}} {{[-m|--message]}} {{message}}`
|
9
pages/common/jj-edit.md
Normal file
9
pages/common/jj-edit.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
# jj edit
|
||||
|
||||
> Set the specified revision as the working-copy revision.
|
||||
> Note: It is generally recommended to instead use `jj new` and `jj squash`.
|
||||
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-edit>.
|
||||
|
||||
- Set the given revision as the working copy:
|
||||
|
||||
`jj edit {{revset}}`
|
20
pages/common/jj-new.md
Normal file
20
pages/common/jj-new.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# jj new
|
||||
|
||||
> Create a new empty change.
|
||||
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-new>.
|
||||
|
||||
- Create a new empty change on top of current revision:
|
||||
|
||||
`jj new`
|
||||
|
||||
- Create a new empty change on top of specific revision:
|
||||
|
||||
`jj new {{revision}}`
|
||||
|
||||
- Create a new merge change on top of multiple revisions:
|
||||
|
||||
`jj new {{revset1 revset2 ...}}`
|
||||
|
||||
- Create a new empty change before and after specified revisions:
|
||||
|
||||
`jj new {{[-B|--insert-before]}} {{revsets}} {{[-A|--insert-after]}} {{revsets}}`
|
20
pages/common/jj-squash.md
Normal file
20
pages/common/jj-squash.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# jj squash
|
||||
|
||||
> Move changes from a revision into another revision.
|
||||
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-squash>.
|
||||
|
||||
- Move all changes from current revision to its parent:
|
||||
|
||||
`jj squash`
|
||||
|
||||
- Move all changes from given revision to its parent:
|
||||
|
||||
`jj squash {{[-r|--revision]}} {{revset}}`
|
||||
|
||||
- Move all changes from given revision(s) to given other revision:
|
||||
|
||||
`jj squash {{[-f|--from]}} {{revsets}} {{[-t|--into]}} {{revset}}`
|
||||
|
||||
- Interactively choose which parts to squash:
|
||||
|
||||
`jj squash {{[-i|--interactive]}}`
|
Loading…
Add table
Reference in a new issue