LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-unpack-file

Extract blob contents to a temporary file

TLDR

Unpack blob to temp file
$ git unpack-file [blob_hash]
copy

SYNOPSIS

git unpack-file blob

DESCRIPTION

git unpack-file creates a temporary file with a blob's contents and prints the filename. It is a low-level plumbing command for accessing blob contents outside of the working tree, used internally during merges and by scripts that need direct access to a blob's data.

INSTALL

sudo apt install git
copy
sudo dnf install git
copy
sudo pacman -S git
copy
sudo apk add git
copy
sudo zypper install git
copy
brew install git
copy
nix profile install nixpkgs#git
copy

CAVEATS

Creates a file named .merge_file_XXXXXX in the current directory. Git does not remove it automatically; the caller is responsible for deleting it once done.

SEE ALSO

RESOURCES

Copied to clipboard
Kai