Posts Tagged ‘git-archive-all’

Archive Submodule in git

One of project that I worked on needs to make a package to be released. The packaging it’s very simple since it’s python. Basically, removing all un-needed code for production (e.g. unit test code, test data, script). Then, we archive it by using git archive command.

It works well until we use git submodule. We found out that the git archive  command doesn’t do the archiving recursively. Thus we need a better tool to do it.

After a quick googling, I find this nice tool to solve the problem. It’s git-archive-all. Basically, what it does is archiving repository:

It’s python based. You can install it using pip. Or if you use macOS, you can install it by using brew.

Another nice tool to help human being 🙂

%d blogger menyukai ini: