method
user_default_branch
v8.1.1 -
Show latest stable
- Class:
Rails::Generators::AppBase
user_default_branch()private
No documentation available.
# File railties/lib/rails/generators/app_base.rb, line 779
def user_default_branch
@user_default_branch ||= capture_command("git config init.defaultbranch").strip.presence || "main"
end