Skip to content

Instantly share code, notes, and snippets.

@SyntaxCacao
Forked from octocat/.gitignore
Last active March 13, 2016 13:51
Show Gist options
  • Save SyntaxCacao/8c641ebbd023d2586267 to your computer and use it in GitHub Desktop.
Save SyntaxCacao/8c641ebbd023d2586267 to your computer and use it in GitHub Desktop.
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Editor generated files #
##########################
# any files generated by editors or IDEs
# Eclipse
.settings/
.classpath
.projects
# IntelliJ
*.iml
*.ipr
*.iws
.idea/
out/
run/
# NetBeans
nbproject/
nbactions.xml
# Sublime Text
*.sublime_project
*.sublime_workspace
# VIM
.*.sw[a-p]
# Logs and databases #
######################
# .sql and .sqlite are often used for schema dumps
*.db
*.log
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Package dependencies #
########################
# and .sass-cache
bower_components/
node_modules/
target/
.gradle
.sass-cache
dependency-reduced-pom.xml
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Desktop.ini
@SyntaxCacao
Copy link
Author

Compared with the original .gitignore by octocat, the following changes were made:

  1. Removed *.sql and *.sqlite, because they are often used for schema dumps.
  2. Added *.db to logs and databases and removed Thumbs.db and ehthumbs.db, because *.db removes them anyways.
  3. Added Desktop.ini to OS generated files (Desktop.ini is generated by Windows).
  4. Created section editor generated files (because these are also important) and filled it with content.
  5. Moved section Logs and databases for an alphabetic order of section titles.
  6. Created section package dependencies and filled it with content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment