This project is archived and is in readonly mode.
Add a default .gitignore for Rails
Reported by Yehuda Katz (wycats) | September 26th, 2009 @ 11:13 PM | in 3.0.2
Comments and changes to this ticket
-
Josh Nichols January 16th, 2010 @ 04:46 PM
This seems to be implemented:
$ ruby railties/bin/rails zomg --dev # snip $ ls zomg/.gitignore zomg/.gitignore
-
Jeremy Kemper January 16th, 2010 @ 08:06 PM
- State changed from open to resolved
-
Peter Aronoff January 11th, 2011 @ 01:56 PM
I think the default
.gitignore
file rails produces uses a glob syntax that Git doesn't recognize. The template file includes this linetmp/**/*
, 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 betmp/
? (Or maybe/tmp/
if the idea is to ignore only thetmp
directory at the top level.)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>