migrate git function within main wordpress task