checking if the git work is success or not