sunjourney
V2EX  ›  Bash

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

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