Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What to ignore in a Mercurial .hgignore for a Ruby on Rails app

I created a hello world app with rails HelloWorld command. I ended up with many directories:

  • app
  • config
  • db
  • doc
  • lib
  • log
  • public
  • script
  • test
  • tmp
  • vendor

Should all this be under sources control? What would be a good default .hgignore file for a Ruby on Rails app folder?

like image 973
Sylvain Avatar asked May 14 '10 02:05

Sylvain


People also ask

How do I ignore a mercurial file?

The working directory of a Mercurial repository will often contain files that should not be tracked by Mercurial. These include backup files created by editors and build products created by compilers. These files can be ignored by listing them in a . hgignore file in the root of the working directory.

What is hgignore file?

hgignore file sits in the working directory, next to the . hg folder. It is a file versioned as any other versioned file in the working directory, which is used to hold the content of the ignore patterns that are used for any command operating on the working directory.


1 Answers

.bundle
db/*.sqlite3
log/*.log
tmp/*

.DS_Store
.orig
like image 107
Quanyi Ma Avatar answered Sep 19 '22 17:09

Quanyi Ma