how to return latest version in github

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

Also in C++: