simulate whole process including adding a new file and pushing at the end