reinstall git mac code example Example: latest version of git / we need to type both of them git fetch origin git reset --hard origin/master