add function to write out shell scripts that reproduce adding commitids