#fetch last commit from remote git fetch origin #pipe commands && #force reset git reset --hard origin/master #clean repo from untraced file "NOT Recommended" git clean -f -d