tar --exclude选项简单示例

    tar命令有一个--exclude命令,用于忽略不需要归档的文件。

    简单的用法示例如下:

写道
tar -zcvf xstring-0.0.1.tgz xstring/ --exclude "xstring/.hg/*"