how to ignore some files with zip ignore .gti file code example
Example 1: how to zip a folder but ignore some files
zip -r myarchive.zip dir1 -x dir1/ignoreDir1/**\* dir1/ignoreDir2/**\*
Example 2: zip file ignoring directory starting with dot
if you are using
zip -r 1.zip *
this will ignore the hidden directories(dot directory)
To include the dot directory use the below format.
it includes everything in that directory
zip -r 1.zip .