g function to foward cmds to git