Skip to content

Instantly share code, notes, and snippets.

@wonky-tech
Forked from salcode/.gitignore
Last active August 29, 2015 14:26
Show Gist options
  • Select an option

  • Save wonky-tech/dbdcd72ed68d957b494f to your computer and use it in GitHub Desktop.

Select an option

Save wonky-tech/dbdcd72ed68d957b494f to your computer and use it in GitHub Desktop.

Revisions

  1. @salcode salcode revised this gist Feb 27, 2015. 1 changed file with 6 additions and 17 deletions.
    23 changes: 6 additions & 17 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    # .gitignore for WordPress
    # Bare Minimum Git
    # http://ironco.de/bare-minimum-git/
    # ver 20140606
    # ver 20150227
    #
    # This file is tailored for a WordPress project
    # using the default directory structure
    @@ -21,6 +21,8 @@
    # use `git rm --cached`
    #
    # Change Log:
    # 20150227 Ignore hello.php plugin. props @damienfa
    # 20150227 Change theme ignore to wildcard twenty*. props @Z33
    # 20140606 Add .editorconfig as a tracked file
    # 20140404 Ignore database, compiled, and packaged files
    # 20140404 Header Information Updated
    @@ -88,24 +90,11 @@ wp-content/*
    !wp-content/plugins/
    !wp-content/themes/

    # ADVANCED OPTION (disabled by default)
    # ignore everything in the "plugins" directory,
    # except the plugins you specify
    #wp-content/plugins/*
    #!wp-content/plugins/stop-emails/

    # ADVANCED OPTION (disabled by default)
    # ignore everything in the "themes" directory,
    # except the themes you specify
    #wp-content/themes/*
    #!wp-content/themes/bootstrap-genesis/
    # ignore these plugins
    wp-content/plugins/hello.php

    # ignore specific themes
    wp-content/themes/twentyten/
    wp-content/themes/twentyeleven/
    wp-content/themes/twentytwelve/
    wp-content/themes/twentythirteen/
    wp-content/themes/twentyfourteen/
    wp-content/themes/twenty*/

    # ignore node/grunt dependency directories
    node_modules/
  2. @salcode salcode revised this gist Jun 6, 2014. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    # .gitignore for WordPress
    # Bare Minimum Git
    # http://ironco.de/bare-minimum-git/
    # ver 20140404
    # ver 20140606
    #
    # This file is tailored for a WordPress project
    # using the default directory structure
    @@ -21,6 +21,7 @@
    # use `git rm --cached`
    #
    # Change Log:
    # 20140606 Add .editorconfig as a tracked file
    # 20140404 Ignore database, compiled, and packaged files
    # 20140404 Header Information Updated
    # 20140402 Initially Published
    @@ -31,12 +32,15 @@
    /*
    !wp-content/

    # ignore all files starting with ., except .gitignore
    # ignore all files starting with .
    .*

    # track this file .gitignore (i.e. do NOT ignore it)
    !.gitignore

    # track .editorconfig file (i.e. do NOT ignore it)
    !.editorconfig

    # track readme.md in the root (i.e. do NOT ignore it)
    !readme.md

  3. @salcode salcode revised this gist Apr 7, 2014. 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
    @@ -1,5 +1,5 @@
    # -----------------------------------------------------------------
    # .gitignore
    # .gitignore for WordPress
    # Bare Minimum Git
    # http://ironco.de/bare-minimum-git/
    # ver 20140404
  4. @salcode salcode revised this gist Apr 7, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -4,8 +4,8 @@
    # http://ironco.de/bare-minimum-git/
    # ver 20140404
    #
    # This file is tailored for a WordPress project but should work
    # for other projects, as well.
    # This file is tailored for a WordPress project
    # using the default directory structure
    #
    # This file specifies intentionally untracked files to ignore
    # http://git-scm.com/docs/gitignore
  5. @salcode salcode revised this gist Apr 4, 2014. 1 changed file with 22 additions and 1 deletion.
    23 changes: 22 additions & 1 deletion .gitignore
    Original file line number Diff line number Diff line change
    @@ -21,6 +21,7 @@
    # use `git rm --cached`
    #
    # Change Log:
    # 20140404 Ignore database, compiled, and packaged files
    # 20140404 Header Information Updated
    # 20140402 Initially Published
    #
    @@ -51,8 +52,28 @@ Thumbs.db
    *.sublime-workspace
    *.komodoproject

    # ignore log files
    # 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

    # ignore everything in the "wp-content" directory, except:
    # "mu-plugins" directory
  6. @salcode salcode revised this gist Apr 4, 2014. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,11 @@
    # -----------------------------------------------------------------
    # Bare Minimum Git
    # .gitignore
    # Bare Minimum Git
    # http://ironco.de/bare-minimum-git/
    # ver 20140404
    #
    # This file is tailored for a WordPress project but should work
    # on other projects, as well.
    # for other projects, as well.
    #
    # This file specifies intentionally untracked files to ignore
    # http://git-scm.com/docs/gitignore
    @@ -18,6 +21,7 @@
    # use `git rm --cached`
    #
    # Change Log:
    # 20140404 Header Information Updated
    # 20140402 Initially Published
    #
    # -----------------------------------------------------------------
  7. @salcode salcode created this gist Apr 2, 2014.
    82 changes: 82 additions & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,82 @@
    # -----------------------------------------------------------------
    # Bare Minimum Git
    # .gitignore
    # This file is tailored for a WordPress project but should work
    # on other projects, as well.
    #
    # This file specifies intentionally untracked files to ignore
    # http://git-scm.com/docs/gitignore
    #
    # NOTES:
    # The purpose of gitignore files is to ensure that certain files not
    # tracked by Git remain untracked.
    #
    # 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:
    # 20140402 Initially Published
    #
    # -----------------------------------------------------------------

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

    # ignore all files starting with ., except .gitignore
    .*

    # track this file .gitignore (i.e. do NOT ignore it)
    !.gitignore

    # track readme.md in the root (i.e. do NOT ignore it)
    !readme.md

    # ignore all files that start with ~
    ~*

    # ignore OS generated files
    ehthumbs.db
    Thumbs.db

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

    # ignore log files
    *.log

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

    # ADVANCED OPTION (disabled by default)
    # ignore everything in the "plugins" directory,
    # except the plugins you specify
    #wp-content/plugins/*
    #!wp-content/plugins/stop-emails/

    # ADVANCED OPTION (disabled by default)
    # ignore everything in the "themes" directory,
    # except the themes you specify
    #wp-content/themes/*
    #!wp-content/themes/bootstrap-genesis/

    # ignore specific themes
    wp-content/themes/twentyten/
    wp-content/themes/twentyeleven/
    wp-content/themes/twentytwelve/
    wp-content/themes/twentythirteen/
    wp-content/themes/twentyfourteen/

    # ignore node/grunt dependency directories
    node_modules/