git-archive: remove equal signs from parameters (#11984)

This commit is contained in:
Reinhart Previano Koentjoro
2024-01-03 11:40:54 +07:00
committed by GitHub
parent cdfd3cd17b
commit 79dea90876
5 changed files with 25 additions and 25 deletions

View File

@@ -9,20 +9,20 @@
- Create a zip archive from the current HEAD and print it to `stdout`:
`git archive --verbose --format=zip HEAD`
`git archive --verbose --format zip HEAD`
- Same as above, but write the zip archive to file:
`git archive --verbose --output={{path/to/file.zip}} HEAD`
`git archive --verbose --output {{path/to/file.zip}} HEAD`
- Create a tar archive from the contents of the latest commit on a specific branch:
`git archive --output={{path/to/file.tar}} {{branch_name}}`
`git archive --output {{path/to/file.tar}} {{branch_name}}`
- Create a tar archive from the contents of a specific directory:
`git archive --output={{path/to/file.tar}} HEAD:{{path/to/directory}}`
`git archive --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={{path/to/file.tar}} --prefix={{path/to/prepend}}/ HEAD`
`git archive --output {{path/to/file.tar}} --prefix {{path/to/prepend}}/ HEAD`