updates file in repository