Auto-add new files to git?

Hello all,

I've been using RubyMine for a couple of months, and it's pretty handy, but one of the things that really bugs me about it is that whenever I run rails generate for scaffolds or migrations, the files get generated but are not auto-added to git.  This means that I have to remember to go add the files to git, and it has bitten me a couple of  times where I missed a file, tried to deploy, and was hit with an inexplicable failure.

Is there some way I can set it to auto-add new files to git?  Alternately, is there a view where I can set the project viewer to see only all files that are not currently under source control so that I can add them en masse?

4 comments
Comment actions Permalink

Auto-adding externally created files is not possible at the moment. To see the list of all the files not added to version control, open the Changes toolwindow and look at "Unversioned files" node.

0
Comment actions Permalink

Is it yet possible to do this? Auto-add my migration files for example?

0
Comment actions Permalink

If RubyMine can open the newly generated migration right after it's created, surely it can add it to git, too. Or at least ask me if I want it added.

This isn't an "externally created file" in the same way as if I had made it from the terminal. This is a process initiated in RubyMine and terminated in RubyMine, at the end of which RubyMine knows precisely what file is new (because it opens it). There's no need to poll the filesystem or anything like that.

Having to commit migrations separately is very annoying.

0
Comment actions Permalink

We have a corresponding request that will improve the current implementation:

https://youtrack.jetbrains.com/v2/issue/IDEA-52058

0

Please sign in to leave a comment.