Codeberg/Documentation
42
199
Fork
You've already forked Documentation
161

Explain git LFS and use it for the docs #133

Closed
opened 2021年05月29日 14:17:07 +02:00 by fnetX · 0 comments
Owner
Copy link

Git LFS is a nice way to manage large assets that don't need to blow up the Git history size, but can be tracked elsewhere.

We're frequently recommending users with insanely large repos to use Git LFS on Codeberg, but we don't have a section mentioning this. Also, it might be a good idea to introduce it to the docs so that screenshots don't blow up the size.

Basically it works like this: You install the Git LFS plugin (if you don't have it already), you then issue git lfs track "*.filetype" which creates a .gitattributes file to save this information. Each time you add a file of the filetype, the Git history will only store a reference that you added it, the file itself will be stored in Git LFS and can be managed via the repo settings. If you do not need it anymore, you can completely remove it again, the repo size will shrink as it's not stored forever.

More information: https://git-lfs.github.com/

Git LFS is a nice way to manage large assets that don't need to blow up the Git history size, but can be tracked elsewhere. We're frequently recommending users with insanely large repos to use Git LFS on Codeberg, but we don't have a section mentioning this. Also, it might be a good idea to introduce it to the docs so that screenshots don't blow up the size. Basically it works like this: You install the Git LFS plugin (if you don't have it already), you then issue `git lfs track "*.filetype"` which creates a `.gitattributes` file to save this information. Each time you add a file of the filetype, the Git history will only store a reference that you added it, the file itself will be stored in Git LFS and can be managed via the repo settings. If you do not need it anymore, you can completely remove it again, the repo size will shrink as it's not stored forever. More information: https://git-lfs.github.com/
Ghost referenced this issue from a commit 2022年06月16日 21:20:38 +02:00
Sign in to join this conversation.
No Branch/Tag specified
main
renovate/mstruebing-editorconfig-checker-3.x
renovate/lycheeverse-lychee-0.x
renovate/font-awesome
renovate/prettier-3.x
renovate/pagefind-1.x
renovate/markdownlint-cli2-0.x
renovate/markdown-it-14.x
renovate/davidanson-markdownlint-cli2-0.x
renovate/pipelinecomponents-yamllint-0.x
renovate/11ty-eleventy-3.x
renovate/node-lts-slim
renovate/npm-pnpm-vulnerability
renovate/lock-file-maintenance
ci_pr_close_no_preview
pr-554
pr/554
gitea-icons-shortcode
No results found.
Labels
Clear labels
Codeberg Pages
Issues affecting Codeberg Pages
Documentation Usability
Issues related to using and reading docs.codeberg.org
Forgejo
Good First Issue! 👋
Kind: Bug
Kind: Documentation
Kind: Enhancement
Kind: Feature
Kind: Question
Kind: Security
Licensing
Part: Generator
This is related to the generation of the documentation, not to the content itself
Priority: High
The priority is high
Priority: Low
The priority is low
Priority: Medium
The priority is medium
Reviewed: Confirmed
Something has been confirmed
Reviewed: Duplicate
Something exists already
Reviewed: Invalid
Something was marked as invalid
Reviewed: Wontfix
Something won't be fixed
Status: Blocked
Status: Help wanted
Contributions are welcome!
Status: In progress
Work is in progress
Status: Needs feedback
Feedback is needed
Status: Ready for Review
Work is completed
Status: Review
Review is in progress / Reviewers wanted
Status: Stale
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Codeberg/Documentation#133
Reference in a new issue
Codeberg/Documentation
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?