我正在开发一个Joomla!名为 com_proposta 的组件。
我使用git进行版本控制。
我希望git忽略所有Joomla文件,但 c.html.twig
和administrator/components/com_proposta
中的文件除外。
答案 0 :(得分:2)
git上实际上有一个gitignore文件,你可以使用(并参与其中)。
https://github.com/github/gitignore/blob/master/Joomla.gitignore
答案 1 :(得分:1)
您可以使用!
运算符来否定.gitignore
中的忽略。在你的情况下:
*
!administrator/components/com_proposta
!components/com_proposta