wrap git command to prevent abnormal termination of the program
unindent for readability