Github “Updates wer...
 
Notifications
Clear all

Github “Updates were rejected because the remote contains work that you do not have” error

2 Posts
1 Users
0 Likes
715 Views
amrit_3327
(@amrit_3327)
Trusted Member
Joined: 4 years ago
Posts: 65
Topic starter  

Trying to do git push using new origin


   
Quote
amrit_3327
(@amrit_3327)
Trusted Member
Joined: 4 years ago
Posts: 65
Topic starter  

Try to do git pull and do git push again.

 

If you are insured about the changes use following command. This is risky to take backup before hand.

git push -f origin master

   
ReplyQuote
Share: