small modifications to git setup function