120 words
1 minute
Uploading Large Files to GitHub
As is widely known, GitHub cannot upload excessively large files. I needed to back up PDF documents, so I consulted several blogs to find a solution.
For those who have already configured Git locally, three steps are enough. If Git is not configured yet, please refer to other blogs to complete the Git setup.
1 Install and download Git Large File Storage
To upload large files, you first need to obtain the Git LFS program that supports Git large-file uploads.
2 Configuring Git Large File Storage
In the folder containing the Git repository, enter the following commands to install.
git lfs install3 File Upload
After installing Git LFS, enter the following commands in order.
git lfs track "YourFileName"git add .gitattributesgit commit -m "..."git push #上传用于替代大文件的指针git add YourFileNamegit commit -m "..."git push #正常上传文件即可This will enable uploading large files on GitHub.
Share
If this article helped you, please share it with others!
Uploading Large Files to GitHub
https://dreaife.tokyo/en/posts/github-large-files/ Some information may be outdated
Sorting and Binary Search Study Notes
Configure Docker + code-server on Alibaba Cloud to Build an Online Compiler
Related Posts Smart
1
Blog Migration - Mizuki Configuration Records
infra A record of the migration from NotionNext to Mizuki, mainly due to NotionNext's limitations. Mizuki was chosen for its lightweight nature and good balance of features, supporting diaries and project showcases. The configuration process is simple, with content controlled via md and ts files, and it also connects to the Bangumi API. The plan is to synchronize Notion content via CI, implement multilingual support, and address the issue of image links expiring.
2
Automatically Deploy Angular Pages with GitHub Actions
infra This post explains how to configure an Angular project for automatic deployment to GitHub Pages, including modifying the outputPath in angular.json, installing angular-cli-ghpages, creating a GitHub Actions workflow to build and deploy on pushes to a specific branch, and generating the token required to access the repository. Finally, it sets the GitHub Pages branch to gh-pages.
3
Using SVN
infra SVN is a centralized file management/version control tool that supports fine-grained file access management. Before use, a repository must be created, and graphical clients such as TortoiseSVN are recommended. Common commands include checkout, commit, update, add, delete, log, diff, revert, and ignore, and the article also covers branch management and help commands. Detailed command usage is listed to help users get started quickly.
4
Getting Started with Docker
infra Docker is a technology for solving microservice deployment problems by packaging applications and their dependencies into isolated containers, avoiding inconsistent environments and dependency conflicts. Compared with virtual machines, Docker starts faster and uses fewer resources. Its architecture includes images and containers, and users can share and obtain images through Docker Hub. Basic operations include creating and managing images and containers and using volumes for data persistence and host-container decoupling. Docker Compose can simplify distributed application deployment.
5
The First Round of Selection in the New Era
life With the development of AI technology, the cost of using advanced models may lead to social stratification, where only those with strong financial means can use these models. Although current prices are still acceptable, future price increases may make them unaffordable for most people, thus forming the first round of selection. The author feels anxious about this phenomenon, while also realizing that AI applications have moved beyond programming and into broader industries. Facing the challenges and opportunities of a new world, individuals continue to explore under the momentum of the times.
Random Posts Random
1
Experiment 7: HTTP Protocol Analysis and Measurement
cs-base 2022-07-01
2
Trading Journal
WEB3 2025-02-14
3
Experiment 1: Common Network Commands
cs-base 2022-07-01
4
Experiment 8: Deployment and Application of a Web Server
cs-base 2022-07-01
5
Configure Docker + code-server on Alibaba Cloud to Build an Online Compiler
cs-base 2022-07-06





