how to return to latest version on git

C++
// we need to type both of them git fetch origin git reset --hard origin/master
Source

Also in C++: