Skip to content
Shimon's BlogShimon's Blog
主页
杂谈
  • 主页
      • 软件教程
          • Git
            • Git Large File Storage
              • Getting Started
              • Git 介绍
                • Git 仓库
                  • Git 原理
                    • 修改管理
                      • 分支管理
                        • 安装与配置
                          • 工作区和暂存区
                            • 忽略特殊文件
                              • 撤销操作
                                • 服务器搭建
                                  • 标签管理
                                    • 版本回退
                                      • 纵向查看
                                        • 自定义 Git
                                          • 远程仓库
                                          • Nginx

                                          Git Large File Storage

                                          Shimon Zhan2022年4月19日
                                          • Git
                                          • Git
                                          • 软件
                                          小于 1 分钟

                                          此页内容
                                          • Getting Started

                                          # Git Large File Storage

                                          Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.

                                          # Getting Started

                                          1. Download and install the Git command-line extension. Once downloaded and installed, set up Git LFS and its respective hooks by running:

                                            git lfs install
                                            

                                            You’ll need to run this in your repository directory, once per repository.

                                          2. Select the file types you’d like Git LFS to manage (or directly edit your .gitattributes). You can configure file extensions at anytime.

                                            git lfs track "*.psd"
                                            

                                            Make sure to track .gitattributes

                                            git add .gitattributes
                                            
                                          上次编辑于: 2022/4/19 07:13:07
                                          贡献者: ShimonZhan
                                          上一页
                                          Git
                                          下一页
                                          Git 介绍
                                          Copyright © 2021-present Shimon Zhan