Bird
0
0

After setting git config --global core.editor "nano -w", you notice Git still opens Vim. What should you check first?

medium📝 Troubleshoot Q7 of 15
Git - Configuration and Aliases
After setting git config --global core.editor "nano -w", you notice Git still opens Vim. What should you check first?
AIf Nano is installed on your system
BIf the local repository has a different core.editor setting overriding the global one
CIf you have write permissions to the Git config file
DIf the Git version supports core.editor
Step-by-Step Solution
Solution:
  1. Step 1: Understand Git config precedence

    Local repository settings override global settings. If local core.editor is set, it will be used instead of global.
  2. Step 2: Verify local config

    Check local config with git config core.editor to see if it differs from global.
  3. Final Answer:

    If the local repository has a different core.editor setting overriding the global one -> Option B
  4. Quick Check:

    Local config overrides global config [OK]
Quick Trick: Local config overrides global; check local first [OK]
Common Mistakes:
  • Ignoring local config overrides
  • Assuming editor not installed without checking config
  • Not verifying config precedence

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes