updates were rejected because the remote contains work that you do code example
Example 1: Updates were rejected because the remote contains work that you do
git pull origin master
git push -u origin master
Example 2: updates were rejected because the remote contains work that you do
git remote add origin [
git pull origin master
git push origin master
Credit to palerdot's answer on this post:
https://stackoverflow.com/questions/18328800/github-updates-were-rejected-because-the-remote-contains-work-that-you-do-not-h