extracted git stuff to sh script