git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
AndyAO
V2EX  ›  git

找到 git 中特定文件被忽略的原因

  •  1
     
  •   AndyAO · Nov 22, 2021 · 2205 views
    This topic created in 1634 days ago, the information mentioned may be changed or developed.

    git check-ignore -v <path>格式是<source> <COLON> <linenum> <COLON> <pattern> <HT> <pathname>

    例如,

    [DBG]: PS> git check-ignore -v  (GetFileName 0) 
    
    .gitignore:1:file_0.txt file_0.txt
    
    1 replies    2021-11-23 08:39:04 +08:00
    flniu
        1
    flniu  
       Nov 23, 2021
    不错,第一次知道这个命令。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1173 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 23:21 · PVG 07:21 · LAX 16:21 · JFK 19:21
    ♥ Do have faith in what you're doing.