git-archive-all

Archive git repository with its submodules

Fedora
RUN dnf install -y git-archive-all
click the source code to copy install git-archive-all on any operating system with command-not-found.com