gitignore:ignore文件不工作cakephp
我的项目中有.gitignore文件,我也想忽略debug_kit.sqlite 我在我的.gitignore中添加了这个文件,但仍然不起作用,当我重新设置基址时,这个文件中有一个冲突<代码>自动合并tmp/debug_kit.sqlite 冲突(内容):在tmp/debug_kit.sqlite中合并冲突 这是.gitignore文件:gitignore:ignore文件不工作cakephp,git,sqlite,cakephp-3.0,gitignore,cakephp-debug-kit,Git,Sqlite,Cakephp 3.0,Gitignore,Cakephp Debug Kit,我的项目中有.gitignore文件,我也想忽略debug_kit.sqlite 我在我的.gitignore中添加了这个文件,但仍然不起作用,当我重新设置基址时,这个文件中有一个冲突自动合并tmp/debug_kit.sqlite 冲突(内容):在tmp/debug_kit.sqlite中合并冲突 这是.gitignore文件: # CakePHP 3 /vendor/* /config/app.php /tmp/cache/models/* !/tmp/cache/models/empty
# CakePHP 3
/vendor/*
/config/app.php
/tmp/cache/models/*
!/tmp/cache/models/empty
/tmp/cache/persistent/*
!/tmp/cache/persistent/empty
/tmp/cache/views/*
!/tmp/cache/views/empty
/tmp/sessions/*
!/tmp/sessions/empty
/tmp/tests/*
!/tmp/tests/empty
/tmp/debug_kit.sqlite
/logs/*
!/logs/empty
# CakePHP 2
/app/tmp/*
/app/Config/core.php
/app/Config/database.php
/vendors/*
Status API Training Shop Blog About
© 2016 GitHub, Inc. Terms P
.gitignore
仅影响添加到Git之前的文件。如果一个文件已经被添加到索引中,那么在事实发生后将其放入gitignore中没有任何区别
首先从git中删除该文件。然后gitignore将阻止再次添加它:
git rm--cached/tmp/debug_kit.sqlite
.gitignore
用于忽略未跟踪的文件。一旦文件被跟踪,它就不会被忽略。解决冲突。谢谢@Biffen的回复。但是我如何才能取消跟踪这个文件呢?这很有帮助,但我仍然有这样的冲突:冲突(修改/删除):tmp/debug_kit.sqlite在HEAD中删除,在add group和recherche frequente中修改。版本添加组,并将tmp/debug_kit.sqlite的频率记录在树中。“添加组和recherche frequente”是一个古老的提交
谢谢,它现在也可以使用此链接,