Bird
0
0

Why might a team prefer to configure init.defaultBranch to a name other than master?

hard📝 Conceptual Q10 of 15
Git - Configuration and Aliases
Why might a team prefer to configure init.defaultBranch to a name other than master?
ABecause Git no longer supports 'master' as a branch name
BBecause 'master' branches cannot be merged
CTo avoid conflicts with remote repositories that only allow 'main'
DTo use a branch name that better reflects the team's workflow or inclusivity standards
Step-by-Step Solution
Solution:
  1. Step 1: Understand reasons for changing default branch name

    Teams may choose names like 'main' or 'develop' to reflect workflow or promote inclusive language.
  2. Step 2: Clarify misconceptions

    Git supports 'master'; no merge restrictions exist; remote repos allow various branch names.
  3. Final Answer:

    To use a branch name that better reflects the team's workflow or inclusivity standards -> Option D
  4. Quick Check:

    Branch naming reflects team preferences and inclusivity [OK]
Quick Trick: Default branch name reflects team culture and workflow [OK]
Common Mistakes:
  • Believing Git disallows 'master'
  • Thinking 'master' cannot be merged
  • Assuming remote repos restrict branch names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes