0
我正在開發自定義Prestashop 1.6模塊。我將所有網站添加到git中,以便跟蹤我的更改。我使用gitignore.io創建了.gitignore文件。Prestashop 1.6遊戲模塊總是添加和編輯文件
問題是遊戲模塊中總是有新增文件和更改文件。
我應該加入遊戲化模塊文件夾的.gitignore或有另一種解決方案?
我正在開發自定義Prestashop 1.6模塊。我將所有網站添加到git中,以便跟蹤我的更改。我使用gitignore.io創建了.gitignore文件。Prestashop 1.6遊戲模塊總是添加和編輯文件
問題是遊戲模塊中總是有新增文件和更改文件。
我應該加入遊戲化模塊文件夾的.gitignore或有另一種解決方案?
這裏是我的.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
正如你所看到的,我加入了排斥。
很好的答案,但數據目錄中還有其他更改。最後,我選擇了將我的自定義模塊添加到git。 –
那麼,如果你只開發一個模塊,而網站的其他部分是不變的,你可以在git中只有你的模塊文件。 – TheDrot