@reysagar I am thinking from a different perspective!
Why do you need the /vendor directory? What is the purpose for that to upload in the git?
Why I am asking for this?
- Whoever downloads the project, just simply run
composer install
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I am trying to upload the Laravel project vendor folder on the git repository but maybe due to some issues on some packages I am not able to push the code, Also the file size was big so I used the lfs method to upload on the repository but still facing the same issue,
I thought the file was corrupted which is shown on the output but it was working fine, when I make other changes, or add new files/folders it just works fine not with the vendor folder.
Can you guys please help me out with how can I resolve it, I have tried all ways to resolve it but failed.
Output :
evo@KB-Group-X-iMac-M1 ValorPOS % git status
On branch main
Your branch is ahead of 'origin/main' by 5 commits.
(use "git push" to publish your local commits)
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: vendor/srmklive/paypal/tests/Mocks/samples/sample.jpg
modified: vendor/srmklive/paypal/tests/Mocks/samples/sample.png
modified: vendor/srmklive/paypal/tests/Mocks/samples/sample.txt
modified: vendor/srmklive/paypal/tests/Mocks/samples/sample2.pdf
no changes added to commit (use "git add" and/or "git commit -a")
evo@KB-Group-X-iMac-M1 ValorPOS % git add .
evo@KB-Group-X-iMac-M1 ValorPOS % git commit -m 'vendor folder'
[main 412b6db0] vendor folder
4 files changed, 0 insertions(+), 0 deletions(-)
mode change 100644 => 100755 vendor/srmklive/paypal/tests/Mocks/samples/sample.jpg
mode change 100644 => 100755 vendor/srmklive/paypal/tests/Mocks/samples/sample.png
mode change 100644 => 100755 vendor/srmklive/paypal/tests/Mocks/samples/sample.txt
mode change 100644 => 100755 vendor/srmklive/paypal/tests/Mocks/samples/sample2.pdf
evo@KB-Group-X-iMac-M1 ValorPOS % git push -f origin main
Git LFS upload failed: 33% (1/3), 771 B | 0 B/s
(missing) vendor/srmklive/paypal/tests/Mocks/samples/sample2.pdf (040873716d7524beef0403afa8d7f7e3b741320dbd17dd631ed9c552d4db56f4)
(missing) vendor/srmklive/paypal/tests/Mocks/samples/sample.pdf (619ee24c6d20e1087214ee3012db6273f6454925b610b3cdc855d9c0776f04ea)
hint: Your push was rejected due to missing or corrupt local objects.
hint: You can disable this check with: `git config lfs.allowincompletepush true`
Uploading LFS objects: 33% (1/3), 771 B | 0 B/s, done.
error: failed to push some refs to 'github.com:Valor-POS/app.git'
Please or to participate in this conversation.