Create ZIP file using GIT

There are times when you might want to use git to zip files. I am a WordPress Developer so below codes are taken from one of my projects.git archive --format zip HEAD:wp-content/themes/travelers-blog > travelers-blog.zipThe above code will search the folders wp-content/themes/travelers-blog and put all the files of /travelers-blog in travelers-blog.zipgit archive --format=zip --prefix=...