git overwrite local branch with remote

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

Also in C++: