Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add generated files in Rubymine to git

I just started using Rubymine, on a project that is stored in a git repository. According to https://www.jetbrains.com/ruby/help/adding-files-to-version-control.html I should get a popup when adding new files to the project, to add the new file in the index. When I manually create a file, that popup is indeed showing.

However, when I generate new files (Tools | Run Rails Generator) I don't get that option. Even enabling "Add Silently" won't help. Am I missing a setting, or is it something I should get used to?

like image 635
pietmarcus Avatar asked Jun 02 '26 11:06

pietmarcus


1 Answers

It is possible that the generated files are generated in a folder ignored by a .gitignore file.

To check that, do in command-line, type (for a given generated file):

cd /path/to/repo
git check-ignore -v -- path/to/generated/file
like image 182
VonC Avatar answered Jun 04 '26 02:06

VonC