Beranda > Tools > Archive Submodule in git

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: https://github.com/Kentzo/git-archive-all.

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 🙂

Iklan
  1. Belum ada komentar.
  1. No trackbacks yet.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: