pages*: convert long-short to short-long syntax (#13567)

* pages*: convert long-short to short-long syntax

* git-add: fix typo
This commit is contained in:
Sebastiaan Speck
2024-09-03 02:43:42 +02:00
committed by GitHub
parent fb7d0ff4c6
commit 380fd5d441
24 changed files with 58 additions and 58 deletions

View File

@@ -5,24 +5,24 @@
- Create a tar archive from the contents of the current HEAD and print it to `stdout`:
`git archive {{--verbose|-v}} HEAD`
`git archive {{-v|--verbose}} HEAD`
- Use the Zip format and report progress verbosely:
`git archive {{--verbose|-v}} --format zip HEAD`
`git archive {{-v|--verbose}} --format zip HEAD`
- Output the Zip archive to a specific file:
`git archive {{--verbose|-v}} {{--output|-o}} {{path/to/file.zip}} HEAD`
`git archive {{-v|--verbose}} {{-o|--output}} {{path/to/file.zip}} HEAD`
- Create a tar archive from the contents of the latest commit of a specific branch:
`git archive {{--output|-o}} {{path/to/file.tar}} {{branch_name}}`
`git archive {{-o|--output}} {{path/to/file.tar}} {{branch_name}}`
- Use the contents of a specific directory:
`git archive {{--output|-o}} {{path/to/file.tar}} HEAD:{{path/to/directory}}`
`git archive {{-o|--output}} {{path/to/file.tar}} HEAD:{{path/to/directory}}`
- Prepend a path to each file to archive it inside a specific directory:
`git archive {{--output|-o}} {{path/to/file.tar}} --prefix {{path/to/prepend}}/ HEAD`
`git archive {{-o|--output}} {{path/to/file.tar}} --prefix {{path/to/prepend}}/ HEAD`