.gitignore 例外下的文件夹不检测新增文件
阿神
阿神 2017-04-27 09:03:30
0
1
976
* !about/* !.gitignore !extend/* !extend/core/2029321.php !extend-library/* !imaegs/*

*忽略库中的所有文件
之后下面开始添加例外
现在问题来了
1、已经提交过的文件 删除 和 更变都会被检测
2、新建立的文件 例如extend/core/2029321.php 就不会被检测。

求解、

阿神
阿神

闭关修行中......

répondre à tous (1)
阿神

转自 Stack Overflow

  1. 首先,提交全部更新
  2. 执行git rm -r --cached .从 index 内删除所有变更过的文件
  3. 执行git add .git commit -m ".gitignore is now working"
    Derniers téléchargements
    Plus>
    effets Web
    Code source du site Web
    Matériel du site Web
    Modèle frontal
    À propos de nous Clause de non-responsabilité Sitemap
    Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!