How to compress a folder into a zip/rar file while ignoring files listed in the .gitignore file

38 views Asked by At

I'm looking for a way to compress a folder into a zip or rar file while automatically excluding files listed in each .gitignore file per each repo in this folder\subfolder.
The challenge is that each folder may not be a Git repository, but it contains subfolders that might be (so git ... based commands would probably fail).

gitzip npm package seem to work but very slow, old and unstable.

Is there a straightforward solution for this task? Surprisingly, I've searched extensively and did not find a straightforward solution.

Both graphical and CLI solutions are fine, any guidance would be appreciated. Thank you.

0

There are 0 answers