درود دوستان ..
پروژه لاراول به صورت عمومی در گیت هاب منتشر کنم و خطای زیر هنگام آپلود می دهد:
$ git push origin main
To https://github.com/RaymondTomcat/LaravelDisuss.git
! [rejected] main -> main (fetch first)
error: failed to push some refs to 'https://github.com/RaymondTomcat/LaravelDisuss.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.
و نسخه نرم افزار گیت هاب نصب کردم که هنگامی پوشته فایل وارد کردم و دکمه publish branch کلیک می کنم خطای Unknown error می دهد.
مشکل حل شد با دستور زیر:
git push -f origin main@abdolrahman
pull کردم و درست نشد.
شاید پاسخ شما همینجا باشد