YouTube

Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English feliratok

← Git Large File Storage - How to Work with Big Files

Beágyazókód kérése
19 Languages

Showing Revision 2 created 07/09/2015 by tracey hb.

  1. ♪ (theme music) ♪
  2. Big files like binary assets
    have not always played nice with Git,
  3. but with Git Large File Storage,
  4. working with large assets on GitHub
    has never been easier.
  5. Let's take a look at how Git LFS
    not only helps lasso your large files,
  6. but also fits right in
    with your workflow,
  7. whether you prefer
    GitHub's web interface
  8. the command line, or even
    one of our graphical clients.
  9. If you're using GitHub.com,
  10. Git LFS support is built right in.
  11. Large assets managed by Git LFS
    appear alongside your other files.
  12. They even feature the same
    rich visual diffing tools
  13. available for common image formats
    such as PNG, JPEG, or even 3D STL files.
  14. If you're working on the command line
    it's quick and extremely easy
  15. getting up and running
    with Git LFS in your repository.
  16. Simply run
    git lfs track .'(your file type)'
  17. to tell Git LFS to manage
    this type of file.
  18. Git LFS uses the .git attributes file
    to determine which file paths to manage,
  19. so you can tell Git LFS to manage
    all files of a particular type,
  20. or you can tell it to manage
    subsets of files,
  21. or even entire directories.
  22. To see which file types and paths
    are managed by Git LFS,
  23. just type git lfs track
  24. Once you've told Git LFS
    which paths to manage,
  25. you can add your files and commit them
    as you normally would.
  26. If you ever need to confirm
    which specific files get LFS' managing,
  27. just run git lfs ls-files
  28. When you push your changes
    to your Git remote,
  29. Git LFS intercepts the files
    and sends them to the Git LFS server.
  30. It creates a small pointer file
    in your repository
  31. that it uses for linking
    to the actual asset on the Git LFS server.
  32. Now, if you prefer to work
    in GitHub for Mac or GitHub for Windows,
  33. Git LFS support
    is built right in there too.
  34. You can tell Git LFS which paths to manage
    in your repository settings,
  35. add your files as you normally would,
  36. commit, and sync.
  37. The GitHub client handles
    the rest for you automatically.
  38. Thanks for watching this video
    about using Git LFS
  39. to manage your large assets.
  40. Plug this tool into your favorite outlet
  41. and let it handle
    the heavy pushing and pulling.
  42. Big files may be a part of your project,
  43. but they don't have
    to weigh you down anymore.
  44. ♪ (theme music) ♪