updated script first clear errors and then not git commit, git push if there were errors