Bird
0
0

What will be the output of git config --global alias.st status followed by git st?

medium📝 Command Output Q5 of 15
Git - Configuration and Aliases
What will be the output of git config --global alias.st status followed by git st?
AShows the current status of the working directory
BDisplays the commit history
CCreates a new branch named 'st'
DDeletes the current branch
Step-by-Step Solution
Solution:
  1. Step 1: Understand alias creation

    The alias 'st' is set to 'status', so 'git st' runs 'git status'.
  2. Step 2: Identify command output

    'git status' shows the current state of files in the working directory.
  3. Final Answer:

    Shows the current status of the working directory -> Option A
  4. Quick Check:

    Alias 'st' runs 'status' = git st shows status [OK]
Quick Trick: Alias runs the exact command it points to [OK]
Common Mistakes:
  • Confusing status with commit history
  • Thinking alias creates or deletes branches
  • Expecting alias to change repository state

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes