Skip to content

Instantly share code, notes, and snippets.

@miles
Created December 7, 2010 19:38
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save miles/732294 to your computer and use it in GitHub Desktop.
Save miles/732294 to your computer and use it in GitHub Desktop.
augmented .gitignore file from Rails Tutorial
.bundle
db/*.sqlite3*
log/*.log
*.log
tmp/**/*
tmp/*
Gemfile.lock
doc/api
doc/app
*.swp
*~
.DS_Store
@kotp
Copy link

kotp commented Dec 22, 2010

For vi, you may want to ignore *.swo files as well.

@shailendrapalsingh
Copy link

what for sql database file as I am planning to use MySQL at the backend.

@kotp
Copy link

kotp commented May 6, 2012

Look at line 2? It isn't magic though, just whatever files you want to ignore, place the file name or the glob in there.

@theSimplex
Copy link

You definitely don't want to ignore Gemfile.lock file cause you need it in git for pushing to heroku

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