Last active
January 16, 2017 03:51
-
-
Save smhmic/86548222ab09d550ede8 to your computer and use it in GitHub Desktop.
gitignore global
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This file specifies intentionally untracked files to ignore | |
# http://git-scm.com/docs/gitignore | |
# | |
# 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: | |
# `git update-index --assume-unchanged`. | |
# | |
# To stop tracking a file that is currently tracked: | |
# `git rm --cached` | |
# | |
# files not to ignore: | |
#!.gitignore | |
#!readme.md | |
############################################################################## | |
### | |
### IDEs | |
### | |
*.sublime-project | |
*.sublime-workspace | |
*.komodoproject | |
## JetBrains (IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm) | |
.idea/ | |
*.iml | |
*.ipr | |
*.iws | |
## JetBrains plugins: | |
# IntelliJ | |
#out/ | |
# mpeltonen/sbt-idea plugin | |
#.idea_modules/ | |
# JIRA plugin | |
#atlassian-ide-plugin.xml | |
# Crashlytics plugin (for Android Studio and IntelliJ) | |
#com_crashlytics_export_strings.xml | |
############################################################################## | |
### | |
### VCSes | |
### | |
.git/ | |
.svn/ | |
CVS/ | |
############################################################################## | |
### | |
### Windows | |
### | |
# Windows shortcuts | |
*.lnk | |
# ignore all files that start with ~ | |
~* | |
# file thumbnails caches | |
Thumbs.db | |
ehthumbs.db | |
# Folder config file | |
Desktop.ini | |
# Recycle Bin used on file shares | |
$RECYCLE.BIN/ | |
# Windows Installer files | |
*.cab | |
*.msi | |
*.msm | |
*.msp | |
## Visual Studio | |
*.obj | |
*.exe | |
*.pdb | |
*.user | |
*.aps | |
*.pch | |
*.vspscc | |
*_i.c | |
*_p.c | |
*.ncb | |
*.suo | |
*.tlb | |
*.tlh | |
*.bak | |
*.cache | |
*.ilk | |
*.log | |
*.dll | |
*.lib | |
*.sbr | |
############################################################################## | |
### | |
### Mac | |
### | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
# Icon must end with two \r | |
Icon | |
# Thumbnails | |
._* | |
# Files that might appear on external disk | |
.Spotlight-V100 | |
.Trashes | |
# Directories potentially created on remote AFP share | |
.AppleDB | |
.AppleDesktop | |
Network Trash Folder | |
Temporary Items | |
.apdisk | |
############################################################################## | |
### | |
### Dumps, logs, caches, logs, etc | |
### | |
## Log files | |
*.[lL][oO][gG] | |
[lL][oO][gG].[tT][xX][tT] | |
*-[lL][oO][gG].[tT][xX][tT] | |
## db files | |
*.sql | |
*.sqlite | |
*.sqlite3 | |
## archive/package files | |
*.7z | |
*.jar | |
*.rar | |
*.zip | |
*.gz | |
*.bzip | |
*.bz2 | |
*.xz | |
*.lzma | |
*.cab | |
*.iso | |
*.tar | |
*.dmg | |
*.xpi | |
*.gem | |
*.egg | |
*.deb | |
*.rpm | |
*.msi | |
*.msm | |
*.msp | |
## cache files | |
[cC][aA][cC][hH][eE] | |
*[.-_][cC][aA][cC][hH][eE] | |
## Temp files | |
[tT][mM][pP] | |
*[.-_][tT][mM][pP] | |
[tT][eE][mM][pP] | |
*[.-_][tT][eE][mM][pP] | |
## backup files | |
*[.-_][bB][aA][kK] | |
############################################################################## | |
### | |
### WordPress | |
### | |
### only works if WP in repo root: ### | |
# ignore everything in the root except the "wp-content" directory. | |
#/* | |
#!wp-content/ | |
### works for WP anywhere in repo: ### | |
# a) specify path to wp install | |
WORDPRESS/index.php | |
WORDPRESS/license.txt | |
WORDPRESS/readme.html | |
WORDPRESS/xmlrpc.php | |
WORDPRESS/wp-*.php | |
# b) always exclude a few common root files | |
wp-activate.php | |
wp-blog-header.php | |
wp-comments-post.php | |
wp-config-sample.php | |
wp-cron.php | |
wp-links-opml.php | |
wp-load.php | |
wp-login.php | |
wp-mail.php | |
wp-settings.php | |
wp-signup.php | |
wp-trackback.php | |
!wp-content/ | |
# ignore non-standard directories in the "wp-content" directory | |
**/wp-content/*/ | |
!**/wp-content/mu-plugins/ | |
!**/wp-content/themes/ | |
# ignore all plugins by default | |
**/wp-content/plugins/* | |
#!**/wp-content/plugins/ | |
#!**/wp-content/plugins/PLUGIN/ | |
# a) ignore all themes by default | |
#**/wp-content/themes/* | |
#!**/wp-content/themes/THEME/ | |
wp-content/themes/* | |
# b) ignore standard themes | |
**/wp-content/themes/twentyten/ | |
**/wp-content/themes/twentyeleven/ | |
**/wp-content/themes/twentytwelve/ | |
**/wp-content/themes/twentythirteen/ | |
**/wp-content/themes/twentyfourteen/ | |
**/wp-content/themes/twentyfifteen/ | |
############################################################################## | |
### | |
### Other tools | |
### | |
# compiled files | |
#*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
## Composer | |
composer.phar | |
## Node | |
# Runtime data | |
pids | |
*.pid | |
*.seed | |
# Compiled binary addons (http://nodejs.org/api/addons.html) | |
**/build/Release | |
# Dependency directory | |
# Commenting this out is preferred by some people, see | |
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- | |
node_modules | |
# Users Environment Variables | |
.lock-wscript | |
## sass | |
.sass-cache | |
*.css.map | |
## vagrant | |
.vagrant/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment