When I run the Ruby on Rails command rails new my_app, it creates the new my_app directory, and it contains a .git subdirectory, i.e., ./my_app/.git, so it's apparently doing a git init. Where is that git init command coming from, and why does it do that?
Rails version: 7.0.4.3
Ruby version: 3.0.1.p64
Automatic initialization of a
Gitrepo when creating a new app started inRuby on Rails 5.1. The--skip-gitoption can be provided when creating a new app to stopgit_initfrom happening. When the change was introduced thegit_initcommand occurred in theapp_generator.rbfile. In the latest version of ruby on rails (v7.0.4.3), thegit_initcommand occurs in theapp_base.rbfile.