Bird
0
0

You want to configure Git to use Sublime Text as the editor only for a specific repository, but with the option to wait until the editor closes. Which command should you use?

hard📝 Workflow Q8 of 15
Git - Configuration and Aliases
You want to configure Git to use Sublime Text as the editor only for a specific repository, but with the option to wait until the editor closes. Which command should you use?
Agit config core.editor "subl -n -w"
Bgit config --global core.editor "subl -n -w"
Cgit config core.editor subl -n -w
Dgit config --system core.editor "subl -n -w"
Step-by-Step Solution
Solution:
  1. Step 1: Choose local config for specific repo

    To set editor only for current repo, omit --global and --system flags.
  2. Step 2: Include editor options correctly

    Options like -n (new window) and -w (wait) must be inside quotes to be passed as a single string.
  3. Final Answer:

    git config core.editor "subl -n -w" -> Option A
  4. Quick Check:

    Local config with quoted options = git config core.editor "subl -n -w" [OK]
Quick Trick: Use quotes to include editor options; omit --global for local [OK]
Common Mistakes:
  • Using --global when local is needed
  • Not quoting editor options
  • Using --system without admin rights

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes