简体   繁体   中英

How do i archive multiple files into a single zip file in git bash?

So, using GitBash I was able to find out that I could archive a single file into a zip file using the following command:

git archive -o download_files.zip HEAD exampleproc.sql

Is there any way I can archive MULTIPLE files into this single zip file?

As per the documentation , you specify all the files that you want to include. So in your case, it could look like this:

git archive -o download_files.zip HEAD file1.sql file2.sql

Note: This has nothing to do with GitHub by the way, but rather Git itself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM