Skip to content

Instantly share code, notes, and snippets.

@AlexWebLab
Forked from salcode/.gitignore
Created May 24, 2021 06:38
Show Gist options
  • Save AlexWebLab/3fece073398520be01c2b373ba7f2102 to your computer and use it in GitHub Desktop.
Save AlexWebLab/3fece073398520be01c2b373ba7f2102 to your computer and use it in GitHub Desktop.

Revisions

  1. @salcode salcode revised this gist Feb 11, 2021. 1 changed file with 8 additions and 6 deletions.
    14 changes: 8 additions & 6 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    # -----------------------------------------------------------------
    # .gitignore
    # Bare Minimum Git
    # http://ironco.de/bare-minimum-git/
    # ver 20181206
    # https://salferrarello.com/starter-gitignore-file/
    # ver 20210211
    #
    # From the root of your project run
    # curl -O https://gist.github.com/salcode/10017553/raw/.gitignore
    @@ -27,6 +27,7 @@
    # use `git rm --cached`
    #
    # Change Log:
    # 20210211 unignore .env.example
    # 20190705 ignore private/secret files
    # 20181206 remove trailing whitespaces
    # 20180714 unignore .phpcs.xml.dist
    @@ -97,11 +98,12 @@ Thumbs.db
    *.key
    *.pem

    # -------------------------
    # BEGIN Whitelisted Files
    # -------------------------
    # --------------------------------------------------------
    # BEGIN Explictly Allowed Files (i.e. do NOT ignore these)
    # --------------------------------------------------------

    # track these files, if they exist
    !.gitignore
    !.editorconfig
    !.phpcs.xml.dist
    !.phpcs.xml.dist
    !.env.example
  2. @salcode salcode revised this gist Jul 5, 2019. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -27,6 +27,7 @@
    # use `git rm --cached`
    #
    # Change Log:
    # 20190705 ignore private/secret files
    # 20181206 remove trailing whitespaces
    # 20180714 unignore .phpcs.xml.dist
    # 20170502 unignore composer.lock
    @@ -91,6 +92,11 @@ Thumbs.db
    *.tar
    *.zip

    # ignore private/secret files
    *.der
    *.key
    *.pem

    # -------------------------
    # BEGIN Whitelisted Files
    # -------------------------
  3. @salcode salcode revised this gist Dec 6, 2018. 1 changed file with 6 additions and 5 deletions.
    11 changes: 6 additions & 5 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -2,15 +2,15 @@
    # .gitignore
    # Bare Minimum Git
    # http://ironco.de/bare-minimum-git/
    # ver 20180714
    # ver 20181206
    #
    # From the root of your project run
    # curl -O https://gist.github.com/salcode/10017553/raw/.gitignore
    # to download this file
    #
    # This file is tailored for a general web project, it
    # This file is tailored for a general web project, it
    # is NOT optimized for a WordPress project. See
    # https://gist.github.com/salcode/b515f520d3f8207ecd04
    # https://gist.github.com/salcode/b515f520d3f8207ecd04
    # for a WordPress specific .gitignore
    #
    # This file specifies intentionally untracked files to ignore
    @@ -27,6 +27,7 @@
    # use `git rm --cached`
    #
    # Change Log:
    # 20181206 remove trailing whitespaces
    # 20180714 unignore .phpcs.xml.dist
    # 20170502 unignore composer.lock
    # 20170502 ignore components loaded via Bower
    @@ -36,7 +37,7 @@
    # add curl line for quick installation
    # ignore composer files (vendor directory and lock file)
    # 20140606 Add .editorconfig as a tracked file
    # 20140418 remove explicit inclusion
    # 20140418 remove explicit inclusion
    # of readme.md (this is not an ignored file by default)
    # 20140407 Initially Published
    #
    @@ -93,7 +94,7 @@ Thumbs.db
    # -------------------------
    # BEGIN Whitelisted Files
    # -------------------------

    # track these files, if they exist
    !.gitignore
    !.editorconfig
  4. @salcode salcode revised this gist Jul 14, 2018. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    # .gitignore
    # Bare Minimum Git
    # http://ironco.de/bare-minimum-git/
    # ver 20170502
    # ver 20180714
    #
    # From the root of your project run
    # curl -O https://gist.github.com/salcode/10017553/raw/.gitignore
    @@ -27,6 +27,7 @@
    # use `git rm --cached`
    #
    # Change Log:
    # 20180714 unignore .phpcs.xml.dist
    # 20170502 unignore composer.lock
    # 20170502 ignore components loaded via Bower
    # 20150326 ignore jekyll build directory `/_site`
    @@ -95,4 +96,5 @@ Thumbs.db

    # track these files, if they exist
    !.gitignore
    !.editorconfig
    !.editorconfig
    !.phpcs.xml.dist
  5. @salcode salcode revised this gist May 2, 2017. 1 changed file with 2 additions and 4 deletions.
    6 changes: 2 additions & 4 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    # .gitignore
    # Bare Minimum Git
    # http://ironco.de/bare-minimum-git/
    # ver 20150326
    # ver 20170502
    #
    # From the root of your project run
    # curl -O https://gist.github.com/salcode/10017553/raw/.gitignore
    @@ -27,6 +27,7 @@
    # use `git rm --cached`
    #
    # Change Log:
    # 20170502 unignore composer.lock
    # 20170502 ignore components loaded via Bower
    # 20150326 ignore jekyll build directory `/_site`
    # 20150324 Reorganized file to list ignores first and whitelisted last,
    @@ -53,9 +54,6 @@ node_modules/
    # ignore components loaded via Bower
    /bower_components

    # ignore composer lock file
    composer.lock

    # ignore jekyll build directory
    /_site

  6. @salcode salcode revised this gist May 2, 2017. 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
    @@ -27,6 +27,7 @@
    # use `git rm --cached`
    #
    # Change Log:
    # 20170502 ignore components loaded via Bower
    # 20150326 ignore jekyll build directory `/_site`
    # 20150324 Reorganized file to list ignores first and whitelisted last,
    # change WordPress .gitignore link to preferred gist,
    @@ -49,6 +50,9 @@ node_modules/
    # ignore composer vendor directory
    /vendor

    # ignore components loaded via Bower
    /bower_components

    # ignore composer lock file
    composer.lock

  7. @salcode salcode revised this gist Mar 26, 2015. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion .gitignore
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    # .gitignore
    # Bare Minimum Git
    # http://ironco.de/bare-minimum-git/
    # ver 20150324
    # ver 20150326
    #
    # From the root of your project run
    # curl -O https://gist.github.com/salcode/10017553/raw/.gitignore
    @@ -27,6 +27,7 @@
    # use `git rm --cached`
    #
    # Change Log:
    # 20150326 ignore jekyll build directory `/_site`
    # 20150324 Reorganized file to list ignores first and whitelisted last,
    # change WordPress .gitignore link to preferred gist,
    # add curl line for quick installation
    @@ -51,6 +52,9 @@ node_modules/
    # ignore composer lock file
    composer.lock

    # ignore jekyll build directory
    /_site

    # ignore OS generated files
    ehthumbs.db
    Thumbs.db
  8. @salcode salcode revised this gist Mar 24, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -30,6 +30,7 @@
    # 20150324 Reorganized file to list ignores first and whitelisted last,
    # change WordPress .gitignore link to preferred gist,
    # add curl line for quick installation
    # ignore composer files (vendor directory and lock file)
    # 20140606 Add .editorconfig as a tracked file
    # 20140418 remove explicit inclusion
    # of readme.md (this is not an ignored file by default)
  9. @salcode salcode revised this gist Mar 24, 2015. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -44,6 +44,12 @@
    # ignore node/grunt dependency directories
    node_modules/

    # ignore composer vendor directory
    /vendor

    # ignore composer lock file
    composer.lock

    # ignore OS generated files
    ehthumbs.db
    Thumbs.db
  10. @salcode salcode revised this gist Mar 24, 2015. 1 changed file with 21 additions and 14 deletions.
    35 changes: 21 additions & 14 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -2,12 +2,16 @@
    # .gitignore
    # Bare Minimum Git
    # http://ironco.de/bare-minimum-git/
    # ver 20140606
    # ver 20150324
    #
    # From the root of your project run
    # curl -O https://gist.github.com/salcode/10017553/raw/.gitignore
    # to download this file
    #
    # This file is tailored for a general web project, it
    # is NOT optimized for a WordPress project. See
    # http://ironco.de/bare-minimum-git/ for a WordPress
    # specific .gitignore
    # https://gist.github.com/salcode/b515f520d3f8207ecd04
    # for a WordPress specific .gitignore
    #
    # This file specifies intentionally untracked files to ignore
    # http://git-scm.com/docs/gitignore
    @@ -23,25 +27,23 @@
    # use `git rm --cached`
    #
    # Change Log:
    # 20150324 Reorganized file to list ignores first and whitelisted last,
    # change WordPress .gitignore link to preferred gist,
    # add curl line for quick installation
    # 20140606 Add .editorconfig as a tracked file
    # 20140418 remove explicit inclusion
    # of readme.md (this is not an ignored file by default)
    # 20140407 Initially Published
    #
    # -----------------------------------------------------------------

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

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

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

    # ignore all files that start with ~
    ~*

    # ignore node/grunt dependency directories
    node_modules/

    # ignore OS generated files
    ehthumbs.db
    Thumbs.db
    @@ -74,5 +76,10 @@ Thumbs.db
    *.tar
    *.zip

    # ignore node/grunt dependency directories
    node_modules/
    # -------------------------
    # BEGIN Whitelisted Files
    # -------------------------

    # track these files, if they exist
    !.gitignore
    !.editorconfig
  11. @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
    # Bare Minimum Git
    # http://ironco.de/bare-minimum-git/
    # ver 20140418
    # ver 20140606
    #
    # This file is tailored for a general web project, it
    # is NOT optimized for a WordPress project. See
    @@ -23,18 +23,22 @@
    # use `git rm --cached`
    #
    # Change Log:
    # 20140606 Add .editorconfig as a tracked file
    # 20140418 remove explicit inclusion
    # of readme.md (this is not an ignored file by default)
    # 20140407 Initially Published
    #
    # -----------------------------------------------------------------

    # 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

    # ignore all files that start with ~
    ~*

  12. @salcode salcode revised this gist Apr 18, 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
    @@ -2,7 +2,7 @@
    # .gitignore
    # Bare Minimum Git
    # http://ironco.de/bare-minimum-git/
    # ver 20140407
    # ver 20140418
    #
    # This file is tailored for a general web project, it
    # is NOT optimized for a WordPress project. See
  13. @salcode salcode revised this gist Apr 18, 2014. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -23,6 +23,8 @@
    # use `git rm --cached`
    #
    # Change Log:
    # 20140418 remove explicit inclusion
    # of readme.md (this is not an ignored file by default)
    # 20140407 Initially Published
    #
    # -----------------------------------------------------------------
    @@ -33,9 +35,6 @@
    # 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 ~
    ~*

  14. @salcode salcode created this gist Apr 7, 2014.
    75 changes: 75 additions & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,75 @@
    # -----------------------------------------------------------------
    # .gitignore
    # Bare Minimum Git
    # http://ironco.de/bare-minimum-git/
    # ver 20140407
    #
    # This file is tailored for a general web project, it
    # is NOT optimized for a WordPress project. See
    # http://ironco.de/bare-minimum-git/ for a WordPress
    # specific .gitignore
    #
    # 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:
    # 20140407 Initially Published
    #
    # -----------------------------------------------------------------

    # 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 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 node/grunt dependency directories
    node_modules/