git revert to repo version

C++
git fetch origin
git reset --hard origin/master

Source

Also in C++: