{"id":1499,"date":"2024-01-28T12:37:54","date_gmt":"2024-01-28T03:37:54","guid":{"rendered":"https:\/\/dohokin.com\/?p=1499"},"modified":"2024-01-28T19:30:13","modified_gmt":"2024-01-28T10:30:13","slug":"unable-to-push-a-commit-due-to-missing-lfs-objects-after-using-laravel-shift-to-upgrade-application-from-5-8-to-6-x","status":"publish","type":"post","link":"https:\/\/dohokin.com\/?p=1499","title":{"rendered":"Unable to push a commit due to missing LFS objects after using Laravel Shift to upgrade application from 5.8 to 6.x"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/dohokin.com\/wp-content\/uploads\/2024\/01\/image-19.png\" alt=\"\" class=\"wp-image-1514\" srcset=\"https:\/\/dohokin.com\/wp-content\/uploads\/2024\/01\/image-19.png 1024w, https:\/\/dohokin.com\/wp-content\/uploads\/2024\/01\/image-19-300x300.png 300w, https:\/\/dohokin.com\/wp-content\/uploads\/2024\/01\/image-19-150x150.png 150w, https:\/\/dohokin.com\/wp-content\/uploads\/2024\/01\/image-19-768x768.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Dealing with Git LFS (Large File Storage) issues can be tricky, especially after a significant upgrade like moving a Laravel application from 5.8 to 6.x. Your issue seems to be with Git LFS not properly tracking or finding the necessary files in the LFS storage. Let&#8217;s go through the steps to troubleshoot and resolve this issue:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Verify Git LFS Installation<\/h3>\n\n\n\n<p>First, ensure that Git LFS is correctly installed on your system. Run:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#0F111A\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"git lfs install\" style=\"color:#babed8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki material-theme-ocean\" style=\"background-color: #0F111A\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">lfs<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">install<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>This command will set up any necessary hooks in your Git configuration.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Check LFS Tracking<\/h3>\n\n\n\n<p>Check if the mentioned files are being tracked by Git LFS:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#0F111A\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"git lfs ls-files\n\" style=\"color:#babed8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki material-theme-ocean\" style=\"background-color: #0F111A\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">lfs<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">ls-files<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p>This command lists all files currently being tracked by Git LFS. If the files in question (<code>sample.pdf<\/code> and <code>sample2.pdf<\/code>) aren&#8217;t listed, they aren&#8217;t being tracked.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Track Missing Files<\/h3>\n\n\n\n<p>If the files aren&#8217;t being tracked, you can manually track them:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#0F111A\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"git lfs track &quot;vendor\/srmklive\/paypal\/tests\/Mocks\/samples\/sample.pdf&quot;\ngit lfs track &quot;vendor\/srmklive\/paypal\/tests\/Mocks\/samples\/sample2.pdf&quot;\" style=\"color:#babed8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki material-theme-ocean\" style=\"background-color: #0F111A\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">lfs<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">track<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">vendor\/srmklive\/paypal\/tests\/Mocks\/samples\/sample.pdf<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">lfs<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">track<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">vendor\/srmklive\/paypal\/tests\/Mocks\/samples\/sample2.pdf<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>Then add and commit the <code>.gitattributes<\/code> file which is updated by the <code>track<\/code> command:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#0F111A\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"git add .gitattributes\ngit commit -m &quot;Track LFS files&quot;\n\" style=\"color:#babed8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki material-theme-ocean\" style=\"background-color: #0F111A\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">add<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">.gitattributes<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">commit<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">-m<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">Track LFS files<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Re-Add Files to LFS<\/h3>\n\n\n\n<p>Re-add the files to ensure they are correctly referenced in LFS:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#0F111A\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"git add vendor\/srmklive\/paypal\/tests\/Mocks\/samples\/sample.pdf\ngit add vendor\/srmklive\/paypal\/tests\/Mocks\/samples\/sample2.pdf\ngit commit -m &quot;Re-add LFS files&quot;\n\" style=\"color:#babed8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki material-theme-ocean\" style=\"background-color: #0F111A\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">add<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">vendor\/srmklive\/paypal\/tests\/Mocks\/samples\/sample.pdf<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">add<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">vendor\/srmklive\/paypal\/tests\/Mocks\/samples\/sample2.pdf<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">commit<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">-m<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">Re-add LFS files<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Push Changes<\/h3>\n\n\n\n<p>Attempt to push your changes again:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#0F111A\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"git push\n\" style=\"color:#babed8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki material-theme-ocean\" style=\"background-color: #0F111A\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #BABED8\"> <\/span><span style=\"color: #C3E88D\">push<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Step 6: Check for .gitignore Conflicts<\/h3>\n\n\n\n<p>Ensure that <code>.gitignore<\/code> isn&#8217;t causing the files to be overlooked. Files listed in <code>.gitignore<\/code> won&#8217;t be tracked by Git or Git LFS.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 7: Inspect LFS Storage<\/h3>\n\n\n\n<p>If the issue persists, the problem might be on the server-side with LFS storage. Check the configuration of your Git repository host for any LFS limitations or issues.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 8: Contact Support<\/h3>\n\n\n\n<p>If you&#8217;re still facing issues, it might be helpful to contact the support team of your Git repository hosting service (like GitHub, GitLab, etc.) for assistance, as they might have more insights into LFS-related issues on their platforms.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Additional Notes:<\/h3>\n\n\n\n<ul>\n<li><strong>Commit Size<\/strong>: Be aware of the size of the files you&#8217;re committing with LFS, as there might be size limits depending on your Git hosting service.<\/li>\n\n\n\n<li><strong>LFS Quotas<\/strong>: Some services have quotas on LFS usage; exceeding these can cause issues.<\/li>\n\n\n\n<li><strong>Network Issues<\/strong>: Sometimes, LFS problems are related to network issues or specific configurations required by your Git repository host.<\/li>\n<\/ul>\n\n\n\n<p>Remember, using <code>lfs.allowincompletepush<\/code> as a workaround is not recommended as it can lead to an incomplete history and potential issues with your repository&#8217;s integrity. It&#8217;s better to resolve the root cause of the missing LFS objects.<\/p>\n\n\n<p>Tell me more step by step about Unable to push a commit due to missing LFS objects, after having utilized laravel shift to upgrade application to 6.x from 5.8<\/p>\n<p>As the title suggests, I attempted a laravel shift on my project to go to 6.x from 5.8. I followed the changelog provided by the laravel shift branch in my project and made appropriate changes, and when I tried to commit and push changes, I received an error indicating that certain LFS upload objects were missing.<\/p>\n<p>Error:<br \/>(missing) vendor\/srmklive\/paypal\/tests\/Mocks\/samples\/sample.pdf<br \/>(missing) vendor\/srmklive\/paypal\/tests\/Mocks\/samples\/sample2.pdf<\/p>\n<p>However, when I checked the file path, the files are present and not missing or hidden.<\/p>\n<p>Having received this error, I tried to fix it by running the git command to allow incomplete push.<\/p>\n<pre><code>git config lfs.allowincompletepush true\n<\/code><\/pre>\n<p>However, this did not fix my problem and I still received an error indicating that the files are missing.&lt;\/p<\/p>\n<h1>Unable to push a commit due to missing LFS objects after using Laravel Shift to upgrade application from 5.8 to 6.x<\/h1>\n<p>After attempting a Laravel shift on the project to upgrade from version 5.8 to 6.x, an error occurred while trying to commit and push changes due to missing LFS (Large File Storage) objects. Specifically, it reported that certain LFS upload objects were missing, such as &#8216;sample.pdf&#8217; and &#8216;sample2.pdf&#8217; within the &#8216;vendor\/srmklive\/paypal\/tests\/Mocks\/samples&#8217; path. Although the files were present and not hidden, the error persisted. In an attempt to resolve the issue, the command &#8216;git config lfs.allowincompletepush true&#8217; was executed, but this did not resolve the problem and the files were still reported as missing. Additional troubleshooting steps may be necessary to resolve this issue.<\/p>\n<h1>Keyword 1: Laravel Shift, Keyword 2: LFS (Large File Storage)<\/h1>\n<p>Keyword 1 Explained: Laravel Shift is a service that automates the process of upgrading Laravel applications to newer versions by analyzing the codebase and making the necessary changes to the code and configuration files.<br \/>Keyword 2 Explained: LFS, or Large File Storage, is a Git extension that supports storing large files separately from the Git repository, and it helps manage large binary files efficiently.<\/p>\n<h1>Upgrade Your Laravel Application Smoothly<\/h1>\n<p>Don&#8217;t let LFS issues hold back your Laravel upgrade. Learn how Laravel Shift and LFS can impact your development process and find solutions to tackle these challenges effectively.<\/p>","protected":false},"excerpt":{"rendered":"<p>Unable to push a commit <\/p>\n","protected":false},"author":2,"featured_media":1514,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[1],"tags":[80,81],"_links":{"self":[{"href":"https:\/\/dohokin.com\/index.php?rest_route=\/wp\/v2\/posts\/1499"}],"collection":[{"href":"https:\/\/dohokin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dohokin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dohokin.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dohokin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1499"}],"version-history":[{"count":2,"href":"https:\/\/dohokin.com\/index.php?rest_route=\/wp\/v2\/posts\/1499\/revisions"}],"predecessor-version":[{"id":1515,"href":"https:\/\/dohokin.com\/index.php?rest_route=\/wp\/v2\/posts\/1499\/revisions\/1515"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dohokin.com\/index.php?rest_route=\/wp\/v2\/media\/1514"}],"wp:attachment":[{"href":"https:\/\/dohokin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dohokin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dohokin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}