Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3 generator's git option?

In rails 2.x I could pass on a --git option to ./script/generate to add files to git automatically after creation. However I have been unable to find such an option (or configuration) in Rails 3.0.

Has this been removed or am I missing something? I tried researching this for a while but I am unable to find any reference.

Thanks, Prateek

like image 632
unamashana Avatar asked Sep 16 '10 09:09

unamashana


1 Answers

It doesn't have an option like that, although the standard 'rails new' command does generate the .gitignore and .gitkeep files for you.

Otherwise, I think you need to set up the git project yourself.

like image 66
Alex Avatar answered Sep 21 '22 22:09

Alex