Following on from these questions:
I'm struggling to implement this in my own environment.
I've followed the advice and adapted it to my own needs, however, when I run git status
all I get as untracked is the .gitignore itself.
I'm creating a Magento Module, which, if you've every created one, you'll know has files in odd locations throughout the Magento installation.
Here's the .gitignore I created:
# Ignore All
/*
/*/
# EXCEPT
# =============
# This
!/.gitignore
# Module Config
!/app/etc/modules/Company_Module.xml
# Module Code
!/app/code/local/Company/Module/
# Front End Design
!/app/design/frontend/base/default/layout/company_module.xml
!/app/design/frontend/base/default/template/company_module/
# Back End Design
!/app/design/adminhtml/default/default/layout/company_module.xml
!/app/design/adminhtml/default/default/template/company_module/
# JavaScript
!/js/company_module/
# Front End Skin
!/skin/frontend/base/default/css/company_module/
!/skin/frontend/base/default/images/company_module/
!/skin/frontend/base/default/js/company_module/
# Back End Skin
!/skin/adminhtml/default/default/css/company_module/
!/skin/adminhtml/default/default/images/company_module/
!/skin/adminhtml/default/default/js/company_module/
I created the following file to test its validity /app/etc/modules/Company_Module.xml
but it's not appearing at all within the git status
output.
I'm not sure what to do at this point.