how to remove local commits from server code example Example: revert unpublished commits git reset --hard