• Here is how to get the latest version of codes from the main branch in a Git based repository.
git reset --hard HEAD
git pull