GIT-LFS-CHECKOUT(1) | GIT-LFS-CHECKOUT(1) |
git-lfs-checkout - Update working copy with file content if available
git lfs checkout filespec... git lfs checkout --to path { --ours | --theirs | --base } file...
Try to ensure that the working copy contains file content for Git LFS objects for the current ref, if the object data is available. Does not download any content, see git-lfs-fetch(1) for that.
Checkout scans the current ref for all LFS objects that would be required, then where a file is either missing in the working copy, or contains placeholder pointer content with the same SHA, the real file content is written, provided we have it in the local store. Modified files are never overwritten.
Filespecs can be provided as arguments to restrict the files which are updated.
When used with --to and the working tree is in a conflicted state due to a merge, this option checks out one of the three stages of the conflict into a separate file. This can make using diff tools to inspect and resolve merges easier.
git-lfs-fetch(1), git-lfs-pull(1).
Part of the git-lfs(1) suite.
January 2020 |