Bird
0
0

Given this .gitconfig snippet:

medium📝 Command Output Q13 of 15
Git - Configuration and Aliases
Given this .gitconfig snippet:
[alias]
  co = checkout
  br = branch
[user]
  name = Alice
  email = alice@example.com

What will be the output of git config --get alias.co?
Acheckout
Bco
Calias.co
DError: key not found
Step-by-Step Solution
Solution:
  1. Step 1: Understand alias section usage

    The alias section defines shortcuts for git commands. Here, co is set to checkout.
  2. Step 2: Interpret git config --get alias.co

    This command fetches the value of alias.co, which is 'checkout'.
  3. Final Answer:

    checkout -> Option A
  4. Quick Check:

    alias.co = checkout [OK]
Quick Trick: Aliases map short names to commands, check their values [OK]
Common Mistakes:
  • Expecting the key name instead of its value
  • Confusing alias names with actual commands
  • Assuming error if alias exists

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes