Skip to content

Instantly share code, notes, and snippets.

@nordringrayhide
Created May 24, 2010 15:49
Show Gist options
  • Save nordringrayhide/412033 to your computer and use it in GitHub Desktop.
Save nordringrayhide/412033 to your computer and use it in GitHub Desktop.
#1) Add to your ~/.gitconfig file
#
# [core]
# excludesfile = /home/username/.gitignore
# 2) Create a ~/.gitignore file with file patterns to be ignored
# 3) Save your dot files in another repo so you have a backup (optional).
# $ mv config/database.yml config/databse.yml.example
# Remove files from tracking
# Put it to .gitignore
# $ git rm --cached /path/to/file
.*
~*
*~
*.swp
*.swo
*.tmp
!.gitignore
!.gitmodule
!.autotest
db/*.sqlite3
db/sphinx
config/*.yml
coverage
doc
log
public/index.html
public/system
tmp
test/fixtures
test/integration
.DS_Store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment