Skip to content

Instantly share code, notes, and snippets.

@poychang
Last active September 19, 2016 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save poychang/128d62787f1bf5a60fcdafcb5d223b70 to your computer and use it in GitHub Desktop.
Save poychang/128d62787f1bf5a60fcdafcb5d223b70 to your computer and use it in GitHub Desktop.
This gitignore file is for a general web project
# -----------------------------------------------------------------
# Specifies intentionally untracked files to ignore when using Git
# http://git-scm.com/docs/gitignore
#
# This file is tailored for a general web project
#
# From the root of your project run
# curl -O https://gist.githubusercontent.com/poychang/128d62787f1bf5a60fcdafcb5d223b70/raw/.gitignore
# to download this file
#
# 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`
#
# -----------------------------------------------------------------
# ignore node dependency directories
node_modules/
# ignore bower dependency directories
bower_components/
# ignore OS generated files
ehthumbs.db
Thumbs.db
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment