我正在开发一个自定义的Prestashop 1.6模块。我将所有网站添加到git以跟踪我的更改。我使用gitignore.io创建了.gitignore文件。
问题是游戏化模块中总会有新添加的文件和更改的文件。
我应该将gamification模块文件夹添加到.gitignore还是有其他解决方案?
答案 0 :(得分:1)
以下是我的.gitignore
文件的内容:
# Created by .ignore support plugin (hsz.mobi)
### Prestashop template
# Private files
# The following files contain your database credentials and other personal data.
config/settings.*.php
# Cache, temp and generated files
# The following files are generated by PrestaShop.
admin2/autoupgrade/
/cache/
!/cache/index.php
!/cache/cachefs/index.php
!/cache/purifier/index.php
!/cache/push/index.php
!/cache/sandbox/index.php
!/cache/smarty/index.php
!/cache/tcpdf/index.php
config/xml/*.xml
/log/*
*sitemap.xml
themes/*/cache/
modules/*/config*.xml
# Site content
# The following folders contain product images, virtual products, CSV's, etc.
admin-dev/backups/
admin-dev/export/
admin-dev/import/
download/
/img/*
upload/
/modules/gamification/views/css/*.css
/themes/*/.sass-cache
/themes/*/.sass-cache/*.scssc
modules/homeslider/images/
!modules/homeslider/images/index.php
正如您所看到的,我添加了对游戏化css文件以及homeslider和sass缓存文件的排除。