I have to branches with 2 developers and making merge:
git checkout main Already on 'main' Your branch is ahead of 'origin/main' by 8 commits. (use "git push" to publish your local commits) Pushing changes to main branch I got error
localos:/path_project$ git push -u origin main Password for 'https://[email protected]': To https://github.com/client_name/project_name.git ! [rejected] main -> main (fetch first) error: failed to push some refs to 'https://[email protected]/client_name/project_name.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details. But I am last who pushed to main and I run git stash, so fixing errors I run:
localos:/path_project$ git stash apply CONFLICT (rename/delete): resources/views/adminside/project_product_brand/index.blade.php deleted in Stashed changes and renamed to resources/views/adminside/platform/index.blade.php in Updated upstream. Version Updated upstream of resources/views/adminside/platform/index.blade.php left in tree. CONFLICT (rename/delete): resources/views/adminside/project_product_brand/edit.blade.php deleted in Stashed changes and renamed to resources/views/adminside/platform/edit.blade.php in Updated upstream. Version Updated upstream of resources/views/adminside/platform/edit.blade.php left in tree. CONFLICT (rename/delete): resources/views/adminside/project_product_brand/create.blade.php deleted in Stashed changes and renamed to resources/views/adminside/platform/create.blade.php in Updated upstream. Version Updated upstream of resources/views/adminside/platform/create.blade.php left in tree. CONFLICT (modify/delete): public/js/app.js deleted in Updated upstream and modified in Stashed changes. Version Stashed changes of public/js/app.js left in tree. CONFLICT (rename/delete): app/Http/Requests/ProjectProductBrandRequest.php deleted in Stashed changes and renamed to app/Http/Requests/PlatformRequest.php in Updated upstream. Version Updated upstream of app/Http/Requests/PlatformRequest.php left in tree. Not sure what have I to do with last errors ?