Skip to content

Instantly share code, notes, and snippets.

@datawebbie
Last active December 16, 2015 18:30
Show Gist options
  • Save datawebbie/5478593 to your computer and use it in GitHub Desktop.
Save datawebbie/5478593 to your computer and use it in GitHub Desktop.
My current git init template for web projects
# This file only works for git version 1.6+
# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto
# These files are text and should be normalized (Convert crlf => lf)
*.adoc text
*.css text
*.csv text
*.ctp text
*.erb text
*.htm text
*.html text
*.inc text
*.ini text
*.js text
*.json text
*.md text
*.mustache text
*.php text
*.pl text
*.py text
*.rb text
*.scm text
*.sql text
*.tab text
*.textile text
*.tsv text
*.txt text
*.xml text
.htaccess text
# These files are binary and should be left untouched
# (binary is a macro for -text -diff)
*.7z binary
*.fla binary
*.flv binary
*.gif binary
*.gz binary
*.ico binary
*.jpg binary
*.jpeg binary
*.mov binary
*.mp3 binary
*.mp4 binary
*.png binary
*.pyc binary
*.swf binary
*.ttf binary
*.zip binary
.DS_Store
Thumbs.db
# Ignore netbeans folder
nbproject/*
# Eclipse project files
/.cache
.project
/.settings
.buildpath
/.bundle
/.bitballoon
# Ignore the build directory (both Middleman and Jekyll)
/build
/_site
# Ignore cache
/.sass-cache
/.cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment