Add git debugging to publish command