git reset changes to a file in a branch code example Example: git revert to repo version git fetch origin git reset --hard origin/master