Error: Rejected Updates were rejected because the remote contains work that you do not have locally

Execute in the warehouse directory

 

git pull origin master –allow-unrelated-histories

 

And then you can pull and push successfully