Skip to content

Instantly share code, notes, and snippets.

@prestarocket
Created July 8, 2011 00:43
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save prestarocket/1070872 to your computer and use it in GitHub Desktop.
Save prestarocket/1070872 to your computer and use it in GitHub Desktop.
Prestashop gitignore
# This is a template .gitignore file for git-managed Prestashop projects. Inspired by micahwalter wordpress gitignore
#Ignore ds_store
*.DS_Store
# Ignore everything in the root except modules, themes and override.
/*
!modules/
!themes/
!override/
# Ignore everything in the "plugins" directory, except the plugins you
# specify (see the commented-out examples for hints on how to do this.)
#modules/*
# !modules/my-directory-plugin/
# Ignore everything in the "themes" directory, except the themes you
# specify (see the commented-out example for a hint on how to do this.)
#themes/*
#!themes/my-theme/
@arnisjuraga
Copy link

You must include

!.gitignore

otherwise it will not be able to add .gitignore itself, right? :)

@ceer
Copy link

ceer commented Nov 22, 2017

if you want to ignore all translations files generated by PS:

modules/*/translations/*
themes/*/modules/*/translations/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment