Bird
0
0

Given this .gitconfig snippet:

medium📝 Predict Output Q4 of 15
Git - Configuration and Aliases
Given this .gitconfig snippet:
[alias]
  st = status
  ci = commit
[user]
  email = user@example.com

What command will run when you type git ci?
ARuns <code>git status</code> command
BRuns <code>git checkout</code> command
CRuns <code>git commit</code> command
DRuns <code>git init</code> command
Step-by-Step Solution
Solution:
  1. Step 1: Understand alias section usage

    The [alias] section defines shortcuts for git commands.
  2. Step 2: Match alias 'ci'

    The alias ci is set to commit, so git ci runs git commit.
  3. Final Answer:

    Runs git commit command -> Option C
  4. Quick Check:

    Alias 'ci' = commit command [OK]
Quick Trick: Aliases map shortcuts to full git commands [OK]
Common Mistakes:
  • Confusing 'ci' with 'checkout'
  • Assuming 'st' runs 'commit'
  • Ignoring alias section

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes