sattams-MacBook-Pro:proj-sattam sattam$ git push origin main
To https://github.com/sattamalhamidy/proj-sattam.git
! [rejected] main -> main (fetch first)
error: failed to push some refs to 'https://github.com/sattamalhamidy/proj-sattam.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.
And I tried with git push origin main --force
But there is still the same bug
I have ssh key and also credential has no issue.
Hope someone saves my day.
sattams-MacBook-Pro:proj-sattam sattam$ git push origin main To https://github.com/sattamalhamidy/proj-sattam.git ! [rejected] main -> main (fetch first) error: failed to push some refs to 'https://github.com/sattamalhamidy/proj-sattam.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.
And I tried with git push origin main --force But there is still the same bug
I have ssh key and also credential has no issue. Hope someone saves my day.