changed method to generate gitscript