Add git-publish function.