Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
git-lfs-demo
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Nick Bearson
git-lfs-demo
Commits
608933ae
Commit
608933ae
authored
6 years ago
by
Nick Bearson
Browse files
Options
Downloads
Patches
Plain Diff
initializing, please wait...
parents
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitattributes
+3
-0
3 additions, 0 deletions
.gitattributes
geocat-ancil-01.png
+3
-0
3 additions, 0 deletions
geocat-ancil-01.png
geocat-ancil-02.png
+3
-0
3 additions, 0 deletions
geocat-ancil-02.png
lfs-map.gif
+3
-0
3 additions, 0 deletions
lfs-map.gif
presentation.md
+153
-0
153 additions, 0 deletions
presentation.md
with
165 additions
and
0 deletions
.gitattributes
0 → 100644
+
3
−
0
View file @
608933ae
lfs-map.gif filter=lfs diff=lfs merge=lfs -text
geocat-ancil-01.png filter=lfs diff=lfs merge=lfs -text
geocat-ancil-02.png filter=lfs diff=lfs merge=lfs -text
This diff is collapsed.
Click to expand it.
geocat-ancil-01.png
0 → 100644
LFS
+
3
−
0
View file @
608933ae
131 B
This diff is collapsed.
Click to expand it.
geocat-ancil-02.png
0 → 100644
LFS
+
3
−
0
View file @
608933ae
131 B
This diff is collapsed.
Click to expand it.
lfs-map.gif
0 → 100644
LFS
+
3
−
0
View file @
608933ae
131 B
This diff is collapsed.
Click to expand it.
presentation.md
0 → 100644
+
153
−
0
View file @
608933ae
---
# Using https://github.com/evilz/vscode-reveal
theme
:
"
black"
# https://github.com/hakimel/reveal.js/tree/master/css/theme
transition
:
"
slide"
# transition: "zoom"
highlightTheme
:
"
darkula"
# parallaxBackgroundImage: "background.jpg"
# parallaxBackgroundSize: "6784px 2151px"
# parallaxBackgroundHorizontal: "1000px"
# parallaxBackgroundVertical: "1000px"
---
# Git LFS @ SSEC
Nick Bearson
---
# Who is this for?
*
Algorithm developers tweaking input datasets - these rarely get versioned well, if at all.
*
Software developers who want to preserve test results for future regression tests.
*
Anyone who wants to keep & version data next to their code!
---
# What is Git LFS?
--
Git LFS is an extension for Git which lets you split large binary files into two:
1.
A Git LFS cache pointer (small, text) which gets versioned & stored alongside your code.
2.
The actual file is sent to a Git LFS store which the cache pointer references.
Think of it like emailing someone a URL instead of attaching an entire file.
--

Image credit: Github.com
---
# How Do I Use It?
--
```
bash
git lfs
install
git lfs track
"my_large_dataset.hdf"
git lfs track
"*.nc"
git add .gitattributes
git add my_large_dataset.hdf another_file.nc
git commit
-m
"Add my datasets using Git LFS"
git push origin master
```
*
After the initial install & track commands, you can use the repository like you would any other.
*
Remember to track any new, large binary-ish files before you commit them!
--
# Other Features
*
File Locking
```
bash
git lfs track
"*.nc"
--lockable
git lfs lock my.nc
git lfs unlock my.nc
```
*
Faster Clones - perform a git checkout before downloading from the LFS store
```
bash
git lfs clone
```
---
|
Provider
|
Storage
Quota
|
|
------------------- | ---------------------------- |
|
Gitlab.com | 10 GB |
|
GitHub.com | 1 GB free, $5 / 50 GB after |
|
Bitbucket.com | 1 GB soft cap, 2 GB hard cap |
|
gitlab.ssec.wisc.edu | ∞? (talk to TC) |
-
-
#
# Gitlab.com
*
"For GitLab.com, the repository size limit is 10 GB."
*
https://docs.gitlab.com/ee/user/admin_area/settings/account_and_limit_settings.html
*
https://docs.gitlab.com/ee/workflow/lfs/manage_large_binaries_with_git_lfs.html
-
-
#
# GitHub.com
*
"All personal and organization accounts using Git LFS receive 1 GB of free storage and 1 GB a month of free bandwidth."
*
"Git LFS is available for every repository on GitHub, whether or not your account or organization has a paid plan."
*
https://help.github.com/articles/about-storage-and-bandwidth-usage/
-
-
#
# Bitbucket
*
Soft limit of 1 GB – In-product and email notifications will give you a heads-up that you’re approaching the limit.
*
Hard limit of 2 GB – Pushing to the repository will be disabled until you’re back under the limit.
*
https://blog.bitbucket.org/2014/05/30/repository-size-limits/
-
--
# An Example
--
https://gitlab.ssec.wisc.edu/geocat/geocat-ancillary
--

--

---
# Resources
https://www.atlassian.com/git/tutorials/git-lfs
https://git-lfs.github.com/
https://github.com/git-lfs/git-lfs/wiki/Tutorial
\ No newline at end of file
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