Added better git behaviour to init script.