mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-22 08:51:12 +00:00
Update cheatsheets
This commit is contained in:
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Create an archive of files from a tree.
|
||||
> More information: <https://git-scm.com/docs/git-archive>.
|
||||
|
||||
- Create a tar archive from the contents of the current `HEAD` and print it to `stdout`:
|
||||
- Create a `.tar` archive from the contents of the current `HEAD` and print it to `stdout`:
|
||||
|
||||
`git archive {{[-v|--verbose]}} HEAD`
|
||||
|
||||
@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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:
|
||||
- Create a `.tar` archive from the contents of the latest commit of a specific branch:
|
||||
|
||||
`git archive {{[-o|--output]}} {{path/to/file.tar}} {{branch_name}}`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user