Fixed git setup shit
Untested complete version of script