Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Add a default .gitignore for Rails

#3269

Reported by Yehuda Katz (wycats) · September 26th, 2009 @ 11:13 PM

State: resolved
Milestone: 3.0.2
Assigned to: Yehuda Katz (wycats) Yehuda Katz (wycats)
Importance: none

Activity

  1. Josh Nichols
    Josh Nichols

    This seems to be implemented:

    $ ruby railties/bin/rails zomg --dev
    # snip
    $ ls zomg/.gitignore 
    zomg/.gitignore
    

    January 16th, 2010 @ 04:46 PM

  2. Jeremy Kemper
    Jeremy Kemper
    • State changed from open to resolved

    January 16th, 2010 @ 08:06 PM

  3. Jeremy Kemper
  4. Peter Aronoff
    Peter Aronoff

    I think the default .gitignore file rails produces uses a glob syntax that Git doesn't recognize. The template file includes this line tmp/**/*, but Git doesn't use the double-star pattern the way Ruby does. To ignore a tmp directory (and anything in it, including further subdirectories), shouldn't it be tmp/? (Or maybe /tmp/ if the idea is to ignore only the tmp directory at the top level.)

    January 11th, 2011 @ 01:56 PM