1
如何解决这个问题,并得到它停止发生轨登录问题
冲突(删除/修改):日志/ development.log在eccc398bb3058c5c0cc9e3587aae93289597fc0f删除和修改HEAD。 log/development.log的版本HEAD留在树中。
我在.gitignore
如何解决这个问题,并得到它停止发生轨登录问题
冲突(删除/修改):日志/ development.log在eccc398bb3058c5c0cc9e3587aae93289597fc0f删除和修改HEAD。 log/development.log的版本HEAD留在树中。
我在.gitignore
删除它并提交它。
git rm log/development.log
git commit -m "Removed development log file which was supposed to be ignored."
git push
现在检查并确保您的.gitignore
文件设置正确。
touch log/development.log
git add log/development.log
,你应该得到的混帐这回:
The following paths are ignored by one of your .gitignore files:
log/development.log
Use -f if you really want to add them.
fatal: no files added
如果你没有得到这个,你.gitignore
文件不正确。如果你有正确的输出,那么有人可能已经提交日志文件的唯一方法是,如果他们改变了他们的.gitignore(本地或覆盖忽略全局core.excludesfile
),或者他们使用-f
开关强制它。