سلام
من یه پروژه ساختم که ۱۰ تا کامیت داشت و روی گیتهاب گذاشتم. حالا پروژه رو از گیتهاب گرفتم و با دستور git reset --soft XXXXX کامیتهای آخر رو پاک کردم و ۱۰ تا کامیت به ۲ تا کامیت تبدیل شد
در هنگام git push کردن با ارور زیر مواجه میشم:
To https://github.com/*****/test.git
! [rejected] main -> main (non-fast-forward)
error: failed to push some refs to 'https://github.com/*****/test.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.