mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3mobile wallpaper 4
120 words
1 minute
Uploading Large Files to GitHub
2022-07-07

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 install

3 File Upload#

After installing Git LFS, enter the following commands in order.

git lfs track "YourFileName"
git add .gitattributes
git commit -m "..."
git push #上传用于替代大文件的指针
git add YourFileName
git 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/
Author
dreaife
Published at
2022-07-07
License
CC BY-NC-SA 4.0

Some information may be outdated

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
About an EOA Wallet Signature Verification and Related Content
WEB3 This article provides an in-depth analysis of the complete signature verification process for an Ethereum EOA wallet and the mathematical principles behind it. It first reviews the fundamentals of the secp256k1 curve, including the finite field Fₚ, the elliptic curve point group E(Fₚ), the base point G, and its order n, then explains in detail how point addition, point doubling, and scalar multiplication are computed modulo p and modulo n. It then uses a real SIWE (Sign-In with Ethereum) scenario to show step by step how a wallet generates the r/s/v tuple after receiving a signature request, including hash calculation, random nonce k generation, deriving the R point, and the specific formulas for r, s, and v. Next, it explains how the server verifies ownership without exposing the private key by using the known r, s, v, message hash e, and base point G to recover the public key Q with the formula Q = r⁻¹(sR − eG), then deriving the wallet address by taking the last 20 bytes of the keccak-256 hash. The article also highlights the difference between p and n, the computational difficulty of the elliptic curve discrete logarithm problem (approximately 2¹²⁸), and the potential impact of current quantum computing on this security. Overall, it provides developers with a complete reference from theory to implementation and serves as an SEO-friendly blog summary that improves search visibility for related keywords such as “EOA wallet signature verification,” “secp256k1,” “ECDSA,” and “SIWE.”

Table of Contents