Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0613· OpenAIAi2 WildChat-4.8M (AI2)

git add .gitattributes HXH@HXH MINGW64 /e/桌面/potreei/examples/output/output (main) $ git…

  1. User

    git add .gitattributes

    HXH@HXH MINGW64 /e/桌面/potree_i/examples/output/output (main) $ git add octree.bin

    HXH@HXH MINGW64 /e/桌面/potree_i/examples/output/output (main) $ git commit -m "octree.bin" On branch main nothing to commit, working tree clean

    HXH@HXH MINGW64 /e/桌面/potree_i/examples/output/output (main) $ git push origin main Uploading LFS objects: 100% (1/1), 343 MB | 0 B/s, done. Enumerating objects: 5065, done. Counting objects: 100% (5065/5065), done. Delta compression using up to 4 threads Compressing objects: 100% (4822/4822), done. client_loop: send disconnect: Connection reset by peerKiB/s fatal: the remote end hung up unexpectedlyiB | 104.00 KiB/s fatal: sha1 file '' write error: Broken pipe fatal: the remote end hung up unexpectedly

    HXH@HXH MINGW64 /e/桌面/potree_i/examples/output/output (main) $ git push origin main Uploading LFS objects: 100% (1/1), 343 MB | 0 B/s, done. Enumerating objects: 5065, done. Counting objects: 100% (5065/5065), done. Delta compression using up to 4 threads Compressing objects: 100% (4822/4822), done. Writing objects: 100% (5065/5065), 162.20 MiB | 1.35 MiB/s, done. Total 5065 (delta 889), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (889/889), done. remote: error: Trace: 513bc0fbfe4ccfb6bdf30ba0dec1c0387f11f4dfb54bc2e4d7f1d6eb0c fe8842 remote: error: See https://gh.io/lfs for more information. remote: error: File examples/output/output/octree.bin is 327.31 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 S torage - https://git-lfs.github.com. To github.com:natsumehe/ptree_i.git ! [remote rejected] main -> main (pre-receive hook declined) error: failed to push some refs to 'github.com:natsumehe/ptree_i.git'

  2. Assistant

    The error message indicates that the file "octree.bin" that you are trying to push to the "main" branch of your remote repository is too large. GitHub has a file size limit of 100 MB, and the file you are trying to push is 327.31 MB.

    To resolve this issue, you can use Git LFS (Git Large File Storage) to store large files separately from your repository. With Git LFS, you can push a pointer file to your repository instead of the actual large file. The large file will be stored on the Git LFS server. Here are the steps to use Git LFS:

    1. Install Git LFS on your system by following the instructions on the Git LFS website: https://git-lfs.github.com/
    2. Initialize Git LFS in your repository by running the command "git lfs install" in your repository's root directory.
    3. Specify the file types that you want to track with Git LFS by running the command "git lfs track " followed by the file pattern. For example, if you want to track all ".bin" files, you can run "git lfs track "*.bin"".
    4. Stage and commit your changes as usual. Git LFS will handle the large files separately.
    5. Push your changes to the remote repository using "git push origin ".

    By using Git LFS, you should be able to push the large file without encountering the file size limit error.