Skip to content

Instantly share code, notes, and snippets.

@johnpdang
Created August 21, 2020 16:54
Show Gist options
  • Select an option

  • Save johnpdang/c8d24fd360ab1c552596e0b3da478ddc to your computer and use it in GitHub Desktop.

Select an option

Save johnpdang/c8d24fd360ab1c552596e0b3da478ddc to your computer and use it in GitHub Desktop.

Revisions

  1. johnpdang created this gist Aug 21, 2020.
    32 changes: 32 additions & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    # OSX
    .DS_Store

    # windows
    Desktop.ini

    # 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/
    wp-config.php

    # 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
    *.mp4
    *.mov