11
3
This is driving me crazy. I want to tar
a directory, but exclude some files. This is my command:
tar -zcvf $NAME-$VERSION.tar.gz $NAME-$VERSION --exclude='.git' --exclude='.gitignore'
While the above command works on RedHat EL5, it doesn't work on Mac OS 10.8.2. I have tried replacing the '
with "
, \'
and \"
. I have tried removing the equal signs. Nothing works.
What am I doing wrong?
Use
gnutar
from Brew, MacPort, etc. Apple's tar is too crippled. – jww – 2016-03-20T10:44:47.577