git updates were rejected because the tip of your current branch is behind

C++
git push -f origin master# You can force push your local code status by -f 
# Do this, if you are sure that your commit status in local should be reflected in remote too. 
git push -f origin master
Source

Also in C++: