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

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

求解、

阿神
阿神

闭关修行中......

全部回复(1)
阿神

转自 Stack Overflow

  1. 首先, 提交全部更新
  2. 执行 git rm -r --cached . 从 index 内删除所有变更过的文件
  3. 执行 git add .git commit -m ".gitignore is now working"
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!