Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add Git LFS support for deploying repositories with large files#1897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
Copilot wants to merge3 commits intodev
base:dev
Choose a base branch
Loading
fromcopilot/fix-1896

Conversation

Copy link
Contributor

CopilotAI commentedSep 22, 2025
edited
Loading

This PR adds Git Large File Storage (LFS) support to handle deployments containing files larger than GitHub's 100MB limit. Previously, users with LFS-tracked files would encounter deployment failures because the action was copying actual large binary files instead of LFS pointer files.

Problem

When deploying repositories containing large files tracked by Git LFS, users would see errors like:

remote: error: File index.pck is 101.05 MB; this exceeds GitHub's file size limit of 100.00 MB        remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.

This occurred because Git LFS was not configured in the deployment process, causing the action to copy the actual large files rather than the LFS pointer files.

Solution

Added a newgit-lfs input parameter that:

  1. Configures Git LFS in the workspace - Runsgit lfs install in the main workspace when enabled
  2. Configures Git LFS in the deployment directory - Ensures LFS is also set up in the temporary worktree used for deployment
  3. Maintains backward compatibility - Defaults tofalse, requiring explicit opt-in

Usage

-name:Deploy to GitHub Pagesuses:JamesIves/github-pages-deploy-action@v4with:folder:buildgit-lfs:true

Key Changes

  • New input parameter:git-lfs with boolean type andfalse default
  • Enhanced git initialization: Configures LFS when enabled with proper error handling
  • Worktree LFS support: Ensures LFS is configured in the deployment environment
  • Comprehensive testing: Added dedicated test suite for LFS functionality
  • Updated documentation: Includes usage examples and setup instructions

The implementation properly handles LFS pointer files during the deployment process, allowing users to deploy repositories containing large assets like game files, media content, or other binary data without hitting GitHub's file size limits.

Fixes#1896.


✨ Let Copilot coding agentset things up for you — coding agent works faster and does higher quality work when set up for your repo.

CopilotAIand others added2 commitsSeptember 22, 2025 01:21
Co-authored-by: JamesIves <10888441+JamesIves@users.noreply.github.com>
Co-authored-by: JamesIves <10888441+JamesIves@users.noreply.github.com>
CopilotAI changed the title[WIP] bug: 🐝 lfs file push failedAdd Git LFS support for deploying repositories with large filesSep 22, 2025
Copilot finished work on behalf ofJamesIvesSeptember 22, 2025 01:29
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@JamesIvesJamesIvesAwaiting requested review from JamesIvesJamesIves is a code owner

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

bug: 🐝 lfs file push failed

2 participants

@JamesIves

[8]ページ先頭

©2009-2025 Movatter.jp