git already up to date but not

C++
git checkout master
git reset --hard test
git push --force origin master
Source

Also in C++: