I am quite new to git, and I had been working on a small side project for the last 2 months and had been pushing stuff onto bitbucket with no problems. A couple of days ago,
Try doing
git pull origin master git add -A git commit -m "modified code" git push origin master
Your local repository is likely out of sync with the remote repository.