git-checkout-index
Copy files from the index to the working tree. tldr-pages
On several platforms
Several platforms
Restore any files deleted since the last commit
git checkout-index --allIdentifyRestore any files deleted or changed since the last commit
git checkout-index --all --forceIdentifyRestore any files changed since the last commit, ignoring any files that were deleted
git checkout-index --all --force --no-createIdentifyExport a copy of the entire tree at the last commit to the specified directory (the trailing slash is important)
git checkout-index --all --force --prefix path/to/export_directory/Identify