reset previous commit, assign default values to status in task