Updates file in repository.