mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-10 05:46:47 +00:00
Update cheatsheets
This commit is contained in:
13
tldr/git-get-tar-commit-id
Normal file
13
tldr/git-get-tar-commit-id
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# git get-tar-commit-id
|
||||
|
||||
> Extract commit ID from an archive created using `git archive`.
|
||||
> More information: <https://git-scm.com/docs/git-get-tar-commit-id>.
|
||||
|
||||
- Extract commit hash ID or quietly exit with a return code of 1:
|
||||
|
||||
`git < {{path/to/archive.tar}} get-tar-commit-id`
|
||||
Reference in New Issue
Block a user