Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
git-seminar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maximilian Konzack
git-seminar
Commits
5452a7f4
Commit
5452a7f4
authored
8 years ago
by
Dirk Sarpe
Browse files
Options
Downloads
Patches
Plain Diff
prepare git lfs intro
parent
93af014c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
git-lfs.md
+51
-0
51 additions, 0 deletions
git-lfs.md
with
51 additions
and
0 deletions
git-lfs.md
0 → 100644
+
51
−
0
View file @
5452a7f4
# git-lfs
## Is it for me?
Large (especially binary) files in project you want to track via git.
-
researchers with (result) data sets (but …)
-
web designers (pictures)
## Why git lfs?
-
big blobs problematic in git
-
each commit creates new tree of objects
-
reuses unmodified objects
-
delta compression on modified objects
https://www.youtube.com/watch?v=iJ3hXuEVKAc
./img/Tracking
\
huge
\
files
\
with
\
Git
\
LFS
\
-
\
LinuxCon_2.pdf
## Why git lfs?
-
delta compression does not work well for binary blobs
-
e.g. change colour of image, the whole blob changes
## Solution?
-
git lfs does stores big blobs outside of your repo
-
git lfs stores references to those blobs in repo
## Me needs blobs not the references!
-
git checkout repo as usual
-
git lfs fetch the blobs of your current branch tip
## How do I?
-
`git lfs install`
# is global
-
specify which blobs
`git lfs track "*.jpeg"`
-
git add cat.jpeg
## smudge and clean filter
-
are set up when git lfs is installed
-
clean converts blobs in pointers
-
smudge converts pointers in blobs
-
all done in background
-
if you only want to download blobs on request you need --skip-smudge
## authentication
It should work even if git repo and lfs store are not connected using the client as proxy.
## convert
-
old: bfg repo-cleaner
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment