Bird
0
0

Which command correctly creates a global alias named br for branch?

easy📝 Conceptual Q2 of 15
Git - Configuration and Aliases
Which command correctly creates a global alias named br for branch?
Agit set alias br branch
Bgit config --global alias.br branch
Cgit alias --global br branch
Dgit create alias br branch
Step-by-Step Solution
Solution:
  1. Step 1: Recall correct alias syntax

    The correct syntax is: git config --global alias.
  2. Step 2: Match syntax with options

    Only git config --global alias.br branch matches this syntax exactly.
  3. Final Answer:

    git config --global alias.br branch -> Option B
  4. Quick Check:

    Alias creation syntax = git config --global alias.name command [OK]
Quick Trick: Use 'git config --global alias.name command' to create aliases [OK]
Common Mistakes:
  • Using 'git alias' instead of 'git config'
  • Omitting 'alias.' prefix
  • Using 'git set' or 'git create' which are invalid

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes