Skip to content

Instantly share code, notes, and snippets.

@thejsj
Last active January 4, 2016 03:39
Show Gist options
  • Select an option

  • Save thejsj/8563436 to your computer and use it in GitHub Desktop.

Select an option

Save thejsj/8563436 to your computer and use it in GitHub Desktop.
A gitignore for magento. Only time will tell how good this actually is.
# Ignore File Types
.project
*.sublime-project
*.sublime-workspace
*.tmproj
*.bak
*.swp
*~.nib
# Ignore Default files, Licenses, Readmes, etc.
api.php
cron.php
index.php.sample
LICENSE*
php.ini.sample
README_VARNISH_CACHE.txt
cron.sh
get.php
index.php
install.php
LICENSE.html
pagecache_inserts.sql
RELEASE_NOTES.txt
# Ignore Directories that are part of Core
downloader
includes # You might need to include this later
media
shell # You might need to include this later
var
errors
lib # You might need to include this later
mage # You might need to include this later
pkginfo
# Ignore some directories partially
#
# At this point,
# only 3 directories are left
#
# app, js, skin
#
app
!app/design/frontend/base
# Ignroe certain JS modules
js/blank.html
js/calendar/
js/enterprise/
js/extjs/
js/firebug/
js/flash/
js/index.php
js/jscolor/
js/lib/
js/mage/
js/prototype/
js/scriptaculous/
js/spacer.gif
js/tiny_mce/
js/varien/
# Ignore Certain parts of skin
skin/install
skin/frontend/default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment