Ask Your Question
4

Is it possible for Git to consider ZIP files as directories, while also treating the files contained within the ZIP as blobs?

asked 2021-11-16 11:00:00 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-06-02 15:00:00 +0000

nofretete gravatar image

No, Git does not provide native support for treating ZIP files as directories and files within them as blobs. Git considers ZIP files as binary files and stores them as blobs. If you need to access the files within a ZIP archive, you would need to extract them first. However, there are some third-party tools that can integrate with Git and provide this kind of functionality. One such tool is git-archive-zip, which allows Git to create and extract ZIP archives directly from the repository.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-11-16 11:00:00 +0000

Seen: 15 times

Last updated: Jun 02 '21