我想为我的Magento项目创建一个存储库。根目录中有许多文件夹和文件,我只不时更改一个文件夹:app/code/local/。
我想忽略其他所有内容,但是却做不到。我的.gitignore文件:
*
!app/code/local/
!app/code/local/*
然后当我尝试将文件夹添加到仓库时,出现了错误:
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
有人可以帮忙吗?