Bird
0
0

Which of the following is the correct syntax to set Emacs as the default Git editor globally?

easy📝 Syntax Q3 of 15
Git - Configuration and Aliases
Which of the following is the correct syntax to set Emacs as the default Git editor globally?
Agit config core.editor = emacs --global
Bgit config core.editor --global emacs
Cgit config --global core.editor emacs
Dgit set --global core.editor emacs
Step-by-Step Solution
Solution:
  1. Step 1: Recall correct command order

    The correct order is git config --global core.editor emacs. The --global flag comes immediately after config.
  2. Step 2: Identify syntax errors in other options

    Options B, C, and D have misplaced flags or wrong commands like git set which is invalid.
  3. Final Answer:

    git config --global core.editor emacs -> Option C
  4. Quick Check:

    Correct syntax = git config --global core.editor emacs [OK]
Quick Trick: Place --global right after git config for global settings [OK]
Common Mistakes:
  • Misplacing --global flag
  • Using git set instead of git config
  • Adding equals sign in config command

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes