Bird
0
0

You want all new repositories on your system to start with the branch name stable. How do you set this globally and verify it?

hard📝 Workflow Q15 of 15
Git - Configuration and Aliases
You want all new repositories on your system to start with the branch name stable. How do you set this globally and verify it?
ARun <code>git config --global init.defaultBranch stable</code> and then <code>git config --global init.defaultBranch</code>
BRun <code>git init --default-branch=stable</code> and then <code>git branch</code>
CRun <code>git config --system init.defaultBranch stable</code> and then <code>git status</code>
DRun <code>git set defaultBranch stable</code> and then <code>git config --list</code>
Step-by-Step Solution
Solution:
  1. Step 1: Set the global default branch name

    Use git config --global init.defaultBranch stable to set the default branch name for all new repos globally.
  2. Step 2: Verify the setting

    Run git config --global init.defaultBranch to confirm the value is set to 'stable'.
  3. Final Answer:

    Run git config --global init.defaultBranch stable and then git config --global init.defaultBranch -> Option A
  4. Quick Check:

    Set with config, verify with config [OK]
Quick Trick: Set and verify with git config commands [OK]
Common Mistakes:
  • Using incorrect commands like git set
  • Trying to verify with unrelated commands
  • Using system config without permission

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes