Rejected master error when pushing to github

The following post solved my problem.