0
0
Gitdevops~5 mins

Git LFS for large files - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is Git LFS?
Git LFS (Large File Storage) is an extension for Git that helps manage large files by storing them outside the main repository, replacing them with small pointer files inside Git.
Click to reveal answer
beginner
How does Git LFS store large files differently from regular Git?
Instead of storing the actual large files in the Git repository, Git LFS stores small pointer files in Git and keeps the large files on a separate server or storage.
Click to reveal answer
beginner
Which command initializes Git LFS in a repository?
The command git lfs install sets up Git LFS in your local Git environment.
Click to reveal answer
beginner
How do you track a file type with Git LFS?
Use git lfs track "*.fileextension" to tell Git LFS to manage files with that extension.
Click to reveal answer
intermediate
What happens when you clone a repository that uses Git LFS?
Git LFS downloads the small pointer files first, then automatically fetches the large files from the LFS server after cloning.
Click to reveal answer
What is the main benefit of using Git LFS?
AIt automatically compresses all files in the repository
BIt stores large files outside the Git repository to keep repo size small
CIt speeds up Git commit operations by skipping files
DIt replaces Git for version control
Which command do you run to start using Git LFS in your local Git setup?
Agit lfs enable
Bgit lfs init
Cgit lfs start
Dgit lfs install
How do you tell Git LFS to track all PNG image files?
Agit lfs add png
Bgit track lfs png
Cgit lfs track "*.png"
Dgit add *.png
What file does Git LFS update to keep track of which files it manages?
A.gitattributes
B.gitignore
CREADME.md
D.gitconfig
When cloning a repo with Git LFS files, what happens to the large files?
AThey are downloaded automatically after cloning
BThey are not downloaded at all
CYou must download them manually from the server
DThey are included in the initial clone like normal files
Explain how Git LFS helps manage large files in a Git repository.
Think about how Git normally stores files and what changes with Git LFS.
You got /4 concepts.
    Describe the steps to start tracking a new file type with Git LFS in your project.
    Consider initialization, tracking, and committing changes.
    You got /4 concepts.