2017-03-14 33 views
0

我正在开发自定义Prestashop 1.6模块。我将所有网站添加到git中,以便跟踪我的更改。我使用gitignore.io创建了.gitignore文件。Prestashop 1.6游戏模块总是添加和编辑文件

问题是游戏模块中总是有新增文件和更改文件。

Gamification module changes

我应该加入游戏化模块文件夹的.gitignore或有另一种解决方案?

+1

那么,如果你只开发一个模块,而网站的其他部分是不变的,你可以在git中只有你的模块文件。 – TheDrot

回答

1

这里是我的.gitignore文件的内容:对游戏化CSS文件加homeslider和青菜缓存文件

# 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 

正如你所看到的,我加入了排斥。

+0

很好的答案,但数据目录中还有其他更改。最后,我选择了将我的自定义模块添加到git。 –