# Gitignore

**URL:** <https://www.ruby-forum.com/t/gitignore/190435>\
**Category:** Rails\
**Created:** [June 20, 2010, 7:46am UTC](https://www.ruby-forum.com/t/gitignore/190435 "2010-06-20T07:46:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![giorgio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/cab0a1/32.png) [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Post date:** [June 20, 2010, 7:46am UTC](https://www.ruby-forum.com/t/gitignore/190435/1 "2010-06-20T07:46:10Z")

</div>

I have just started using rad rails again after a long stint on  
netbeans.

It seems to generate loads of files like:  
app/views/group/.tmp\_group\_summary.rhtml.99932

I want to make git ignore all these .tmp files but my entries in  
gitignore have so far been of no avail.

Anybody give me a suggestion?

Cheers  
George

---

<div class="post-metadata">

**Author:** ![giorgio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/cab0a1/32.png) [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Post date:** [June 20, 2010, 8:32pm UTC](https://www.ruby-forum.com/t/gitignore/190435/2 "2010-06-20T20:32:21Z")

</div>

I like the IDE approach overall. Netbeans has some nice autocomplete  
features that really help in writing the code, but then again a simple  
editor can work well too.

For the gitignore, just add a pattern of which files you don’t want  
included either in the root directory or in the specific directory.  
Something along the lines of tmp\_\*

Should be a setting in rad rails for the backups as well.

Hope this helps.

p.s. [GitHub Support](http://help.github.com/git-ignore/)

---

<div class="post-metadata">

**Author:** ![giorgio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/cab0a1/32.png) [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Post date:** [June 20, 2010, 8:38pm UTC](https://www.ruby-forum.com/t/gitignore/190435/3 "2010-06-20T20:38:12Z")

</div>

On 20/06/2010 07:44, giorgio wrote:

> I have just started using rad rails again after a long stint on  
> netbeans.
> 
> It seems to generate loads of files like:  
> app/views/group/.tmp\_group\_summary.rhtml.99932
> 
> I want to make git ignore all these .tmp files but my entries in  
> gitignore have so far been of no avail.
> 
> Anybody give me a suggestion?

.tmp\_\* will ignore the file given as an example above - you would just  
need to ensure that it doesn’t ignore anything you would want to keep as  
it is a fairly large net 🙂

Rory

---

<div class="post-metadata">

**Author:** ![giorgio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/cab0a1/32.png) [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Post date:** [June 20, 2010, 5:21pm UTC](https://www.ruby-forum.com/t/gitignore/190435/4 "2010-06-20T17:21:43Z")

</div>

giorgio wrote:

> I have just started using rad rails again after a long stint on  
> netbeans.

Why? That’s going from bad to worse.

NetBeans: excellent IDE, too heavy for Rails  
Aptana: less good IDE, _still_ too heavy for Rails

Just forget about IDEs and use a good editor such as KomodoEdit. Rails  
doesn’t benefit from the use of an IDE.

> It seems to generate loads of files like:  
> app/views/group/.tmp\_group\_summary.rhtml.99932
> 
> I want to make git ignore all these .tmp files but my entries in  
> gitignore have so far been of no avail.
> 
> Anybody give me a suggestion?

You’ll probably get better answers in a Git forum. This is not a Rails  
question.

> Cheers  
> George

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![giorgio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/cab0a1/32.png) [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Post date:** [June 28, 2010, 4:17am UTC](https://www.ruby-forum.com/t/gitignore/190435/5 "2010-06-28T04:17:49Z")

</div>

I have \*_//.tmp as one line in my gitignore but I still get the  
files appearing when I do a “git status” so I obviously have got it  
wrong.  
Maybe I should just put .tmp_

Cheers  
George

PS  
Thanks for all the advice on ides … but that wasn’t really the  
question!
