Prestashop 1.6 gamification module always adding and editing files

百般思念 提交于 2019-12-11 04:42:56

问题


I am developing a custom Prestashop 1.6 module. I added all the website to git in order to track my changes. I created the .gitignore file using gitignore.io.

The problem is there are always new added files and changed files in the gamification module.

Should I add the gamification module folder to .gitignore or there is another solution?


回答1:


Here is the content of my .gitignore file:

# 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

As you can see, I have added exclusion for gamification css files plus homeslider and sass cache files.



来源:https://stackoverflow.com/questions/42791372/prestashop-1-6-gamification-module-always-adding-and-editing-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!