Skip to content

Commit 4088ed3

Browse files
[autofix.ci] apply automated fixes
1 parent d9786c5 commit 4088ed3

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

doc/includes/cli-reference.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,38 @@ followed by 'gs upstack restack'.
876876

877877
**Configuration**: [spice.branchCreate.prefix](/cli/config.md#spicebranchcreateprefix)
878878

879+
### gs commit pick
880+
881+
```
882+
gs commit (c) pick (p) [<commit>] [flags]
883+
```
884+
885+
Cherry-pick a commit
886+
887+
Apply the changes introduced by a commit to the current branch
888+
and restack the upstack branches.
889+
890+
If a commit is not specified, a prompt will allow picking
891+
from commits of upstack branches of the current branch.
892+
Use the --from option to pick a commit from a different branch
893+
or its upstack.
894+
895+
By default, commit messages for cherry-picked commits will be used verbatim.
896+
Supply --edit to open an editor and change the commit message,
897+
or set the spice.commitPick.edit configuration option to true
898+
to always open an editor for cherry picks.
899+
900+
**Arguments**
901+
902+
* `commit`: Commit to cherry-pick
903+
904+
**Flags**
905+
906+
* `--[no-]edit` ([:material-wrench:{ .middle title="spice.commitPick.edit" }](/cli/config.md#spicecommitpickedit)): Whether to open an editor to edit the commit message.
907+
* `--from=NAME`: Branch whose upstack commits will be considered.
908+
909+
**Configuration**: [spice.commitPick.edit](/cli/config.md#spicecommitpickedit)
910+
879911
### gs commit split
880912

881913
```
@@ -919,7 +951,7 @@ and use --edit to override it.
919951

920952
**Flags**
921953

922-
* `--[no-]edit` ([:material-wrench:{ .middle title="spice.rebaseContinue.edit" }](/cli/config.md#spicerebasecontinueedit)): Whehter to open an editor to edit the commit message.
954+
* `--[no-]edit` ([:material-wrench:{ .middle title="spice.rebaseContinue.edit" }](/cli/config.md#spicerebasecontinueedit)): Whether to open an editor to edit the commit message.
923955

924956
**Configuration**: [spice.rebaseContinue.edit](/cli/config.md#spicerebasecontinueedit)
925957

0 commit comments

Comments
 (0)