-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git lfs pull a single file #1351
Comments
Hi @mmahalwy! You can specify the For example, if you only wanted to pull the file called "a.dat", try: $ git lfs pull --include "a.dat" Or, if you only wanted to pull files matching the ".dat" extension, try: $ git lfs pull --include "*.dat" When given either the Let me know if you have any questions in the future! |
@ttaylorr thank you for that awesome answer! One last thing, does that include directories? For example, I have name Thoughts? |
Yep, just pass |
sweet! TY! |
You're welcome! Feel free to comment here again if you have any more questions 😄 |
I can use |
How do you do this without a remote? Local repo only? This doesn't work:
|
@zezba9000 I could not find a native command (ala
That worked well for me. You'll, of course, need to make sure that the LFS objects exist in your local repository. |
@apm963 thank you. |
You don't actually need a Git LFS-specific way to extract a file. You can use Git to do it yourself by using $ git cat-file --filters HEAD:test1.bin |
git fetch |
Is there a way to only pull a single file?
The text was updated successfully, but these errors were encountered: