Do a git hard reset before updating.