updates were rejected because the remote contains work that you do not have locally. git code example
Example: Updates were rejected because the remote contains work that you do
git pull origin master
git push -u origin master
git pull origin master
git push -u origin master