ubsuny / CP1-24-HW1

Homework template for CP1 in 2024
1 stars 17 forks source link

Force Push #120

Closed haiderabbas007 closed 2 months ago

haiderabbas007 commented 2 months ago

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?