Skip to content

Instantly share code, notes, and snippets.

@miles
Created December 7, 2010 19:38
Show Gist options
  • Select an option

  • Save miles/732294 to your computer and use it in GitHub Desktop.

Select an option

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

kotp commented Dec 22, 2010

Copy link
Copy Markdown

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

@shailendrapalsingh

Copy link
Copy Markdown

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

@kotp

kotp commented May 6, 2012

Copy link
Copy Markdown

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
Copy Markdown

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