def METHOD_NAME(self, to_add={}, to_remove = [], msg="A commit message"):
    if len(to_add) == 0 and len(to_remove) == 0:
        return
    for k in to_remove:
        self.var_map.pop(x,None)
    for k in to_add:
        self.var_map[k] = to_add[k]
    with open(os.path.join(self.repo_path, self.test_file), 'w') as repo_file:
        for k in self.var_map:
            repo_file.write("%s = %s\n" % (k, self.var_map[k]))
    self.repo.git.add("--all")
    self.repo.git.commit(message=msg)