git for windows apt-get code example Example: latest version of git / we need to type both of them git fetch origin git reset --hard origin/master