Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save janzikmund/e26c1810dca8a89c97210c607279f809 to your computer and use it in GitHub Desktop.
Save janzikmund/e26c1810dca8a89c97210c607279f809 to your computer and use it in GitHub Desktop.
Magento .gitignore ignoring everything except theme and skin
# Ignore everything
# Only keep child theme and skin
# has to be written in this stupid way for git to handle ignores in subdirectories correctly
# ignore all
/*
#keep gitignore
!/.gitignore
# theme
!/app
/app/*
!/app/design
/app/design/*
!/app/design/frontend
/app/design/frontend/*
!/app/design/frontend/aloalto
/app/design/frontend/aloalto/*
!/app/design/frontend/aloalto/watchpartners
#skin
!/skin
/skin/*
!/skin/frontend
/skin/frontend/*
!/skin/frontend/aloalto
/skin/frontend/aloalto/*
!/skin/frontend/aloalto/watchpartners
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment