I was getting the following message when trying to push into my OWN repository which was FORKED from ubsuny.
To github.com:haiderabbas007/CP1-24-HW1.git
! [rejected] main -> main (non-fast-forward)
error: failed to push some refs to 'github.com:haiderabbas007/CP1-24-HW1.git'
I eventually used Force Push git push origin main --force which worked. Can someone clarify what is wrong?
I was getting the following message when trying to push into my OWN repository which was FORKED from ubsuny.
To github.com:haiderabbas007/CP1-24-HW1.git ! [rejected] main -> main (non-fast-forward) error: failed to push some refs to 'github.com:haiderabbas007/CP1-24-HW1.git'
I eventually used Force Push git push origin main --force which worked. Can someone clarify what is wrong?