【发布时间】:2011-04-21 00:34:01
【问题描述】:
我想为我的 Magento 项目创建存储库。根目录中有很多文件夹和文件,我有时只更改一个文件夹:app/code/local/
我想忽略的所有其他内容。但是..不能。我的 .gitignore 文件:
*
!app/code/local/
!app/code/local/*
然后当我尝试将文件夹添加到 repo 时出现错误:
git add app/code/local/Mds/
The following paths are ignored by one of your .gitignore files:
app
Use -f if you really want to add them.
fatal: no files added
有人可以帮忙吗?
【问题讨论】: