Skip to content

Instantly share code, notes, and snippets.

@ahathaway
Created April 28, 2020 21:13
Show Gist options
  • Save ahathaway/f152751a01ba387fa08119b744a745e8 to your computer and use it in GitHub Desktop.
Save ahathaway/f152751a01ba387fa08119b744a745e8 to your computer and use it in GitHub Desktop.

Revisions

  1. ahathaway created this gist Apr 28, 2020.
    23 changes: 23 additions & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    # ignore everything in the root except the "wp-content" directory.
    !wp-content/

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

    # ignore these plugins
    wp-content/plugins/hello.php

    # ignore specific themes
    wp-content/themes/twenty*/

    # ignore node dependency directories
    node_modules/

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