Skip to content

Instantly share code, notes, and snippets.

@patrickodacre
Forked from salcode/.gitignore
Last active August 31, 2015 17:46
Show Gist options
  • Save patrickodacre/4462c35c9966c6c4d05c to your computer and use it in GitHub Desktop.
Save patrickodacre/4462c35c9966c6c4d05c to your computer and use it in GitHub Desktop.

Revisions

  1. Patrick O'Dacre revised this gist Aug 31, 2015. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -97,8 +97,8 @@ Thumbs.db
    !wp-content/plugins/pod-core-functionality/
    !wp-content/themes/example-theme/

    .sass-cache
    assets/components
    node_modules
    npm-debug.log
    .DS_Store
    wp-content/themes/example-theme/.sass-cache
    wp-content/themes/example-theme/assets/components
    wp-content/themes/example-theme/node_modules
    wp-content/themes/example-theme/npm-debug.log
    wp-content/themes/example-theme/.DS_Store
  2. Patrick O'Dacre revised this gist Aug 31, 2015. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion .gitignore
    Original file line number Diff line number Diff line change
    @@ -95,4 +95,10 @@ Thumbs.db
    # add your own entries here
    # !wp-content/mu-plugins/example-mu-plugin/
    !wp-content/plugins/pod-core-functionality/
    !wp-content/themes/example-theme/
    !wp-content/themes/example-theme/

    .sass-cache
    assets/components
    node_modules
    npm-debug.log
    .DS_Store
  3. Patrick O'Dacre revised this gist Jul 24, 2015. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -54,6 +54,9 @@ Thumbs.db
    *.sublime-workspace
    *.komodoproject

    # ignore PHP Storm Project Files
    *.idea

    # ignore log files and databases
    *.log
    *.sql
  4. Patrick O'Dacre revised this gist Jun 13, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .gitignore
    Original file line number Diff line number Diff line change
    @@ -90,6 +90,6 @@ Thumbs.db

    # track these mu-plugins, plugins, and themes
    # add your own entries here
    !wp-content/mu-plugins/example-mu-plugin/
    # !wp-content/mu-plugins/example-mu-plugin/
    !wp-content/plugins/pod-core-functionality/
    !wp-content/themes/example-theme/
  5. Patrick O'Dacre revised this gist Jun 13, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .gitignore
    Original file line number Diff line number Diff line change
    @@ -91,5 +91,5 @@ Thumbs.db
    # track these mu-plugins, plugins, and themes
    # add your own entries here
    !wp-content/mu-plugins/example-mu-plugin/
    !wp-content/plugins/example-plugin/
    !wp-content/plugins/pod-core-functionality/
    !wp-content/themes/example-theme/
  6. @salcode salcode revised this gist Mar 2, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -16,6 +16,7 @@
    # git rm --cached
    #
    # Change Log:
    # 20150302 Added composer.json as a whitelisted file
    # 20150227 Created as fork of https://gist.github.com/salcode/9940509,
    # this version ignores all files by default
    # -----------------------------------------------------------------
    @@ -85,6 +86,7 @@ Thumbs.db
    !.editorconfig
    !README.md
    !CHANGELOG.md
    !composer.json

    # track these mu-plugins, plugins, and themes
    # add your own entries here
  7. @salcode salcode revised this gist Feb 27, 2015. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,10 @@
    # .gitignore for WordPress @salcode
    # ver 20150227
    #
    # From the root of your project run
    # curl -O https://gist.github.com/salcode/b515f520d3f8207ecd04/raw/.gitignore
    # to download this file
    #
    # By default all files are ignored. You'll need to whitelist
    # any mu-plugins, plugins, or themes you want to include in the repo.
    #
  8. @salcode salcode created this gist Feb 27, 2015.
    89 changes: 89 additions & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,89 @@
    # -----------------------------------------------------------------
    # .gitignore for WordPress @salcode
    # ver 20150227
    #
    # By default all files are ignored. You'll need to whitelist
    # any mu-plugins, plugins, or themes you want to include in the repo.
    #
    # To ignore uncommitted changes in a file that is already tracked, use
    # git update-index --assume-unchanged
    #
    # To stop tracking a file that is currently tracked, use
    # git rm --cached
    #
    # Change Log:
    # 20150227 Created as fork of https://gist.github.com/salcode/9940509,
    # this version ignores all files by default
    # -----------------------------------------------------------------

    # ignore everything in the root except the "wp-content" directory.
    /*
    !wp-content/

    # ignore everything in the "wp-content" directory, except:
    # mu-plugins, plugins, and themes directories
    wp-content/*
    !wp-content/mu-plugins/
    !wp-content/plugins/
    !wp-content/themes/

    # ignore all mu-plugins, plugins, and themes
    # unless explicitly whitelisted at the end of this file
    wp-content/mu-plugins/*
    wp-content/plugins/*
    wp-content/themes/*

    # ignore all files starting with . or ~
    .*
    ~*

    # ignore node dependency directories (used by grunt)
    node_modules/

    # ignore OS generated files
    ehthumbs.db
    Thumbs.db

    # ignore Editor files
    *.sublime-project
    *.sublime-workspace
    *.komodoproject

    # ignore log files and databases
    *.log
    *.sql
    *.sqlite

    # ignore compiled files
    *.com
    *.class
    *.dll
    *.exe
    *.o
    *.so

    # ignore packaged files
    *.7z
    *.dmg
    *.gz
    *.iso
    *.jar
    *.rar
    *.tar
    *.zip

    # -------------------------
    # BEGIN Whitelisted Files
    # -------------------------

    # track these files, if they exist
    !.gitignore
    !.editorconfig
    !README.md
    !CHANGELOG.md

    # track these mu-plugins, plugins, and themes
    # add your own entries here
    !wp-content/mu-plugins/example-mu-plugin/
    !wp-content/plugins/example-plugin/
    !wp-content/themes/example-theme/