sunjourney
V2EX  ›  Bash

为什么 zip 压缩忽略文件使用 zip a.zip a -x '\*.git\*'而不是 -x '.git'

  •  
  •   sunjourney · Oct 14, 2015 · 3654 views
    This topic created in 4049 days ago, the information mentioned may be changed or developed.
    指定忽略.git 不需要通配呀
    2 replies  •  2015-10-14 18:44:51 +08:00
    abelyao
    abelyao
    Oct 14, 2015
    1
    .git 是一个文件夹,你还需要忽略该文件夹中的文件;
    另外 .git 有可能是在子目录中,所以前面还需要通配;
    sunjourney
    sunjourney
    OP
    Oct 14, 2015 via iPhone
    2
    @abelyao 感谢^ω^!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1775 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 04:56 · PVG 12:56 · LAX 20:56 · JFK 23:56
    ♥ Do have faith in what you're doing.