git push rejected

C++
Just pull repository first and then try to push again
git pull --rebase remote_repo
git push origin remote_repo
Source

Also in C++: