git pull --rebase origin master
git push origin master
git push -f origin master
Warning git push -f origin master
- forcefully pushes on existing repository and also delete previous repositories so if you don`t need previous versions than this might be helpful