0
0
Gitdevops~10 mins

Editor configuration in Git - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to set Vim as the default Git editor.

Git
git config --global core.editor [1]
Drag options to blanks, or click blank then click option'
Acode
Bnano
Cemacs
Dvim
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'nano' or 'emacs' if you want Vim specifically.
Forgetting to use --global to set it for all repositories.
2fill in blank
medium

Complete the command to set Visual Studio Code as the default Git editor.

Git
git config --global core.editor [1]
Drag options to blanks, or click blank then click option'
Acode --wait
Bvscode
Ccode
Dcode -w
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'code' without '--wait' causes Git to continue before editing is done.
Using 'vscode' which is not a valid command.
3fill in blank
hard

Fix the error in this command to set Nano as the Git editor.

Git
git config --global core.editor [1]
Drag options to blanks, or click blank then click option'
Anano --wait
Bnano -wait
Cnano -w
Dnano
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--wait' which Nano does not support.
Forgetting to disable line wrapping with '-w'.
4fill in blank
hard

Fill both blanks to configure Git to use Emacs as the editor with no backup files.

Git
git config --global core.editor "emacs [1] [2]"
Drag options to blanks, or click blank then click option'
A-nw
B-q
C-no-backup
D-no-bak
Attempts:
3 left
💡 Hint
Common Mistakes
Using non-existent flags like '-no-backup'.
Forgetting to run Emacs in no-window mode.
5fill in blank
hard

Fill all three blanks to set Sublime Text as the Git editor with wait option.

Git
git config --global core.editor "[1] [2] [3]"
Drag options to blanks, or click blank then click option'
Asubl
B-n
C-w
D--wait
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--wait' instead of '-w' for Sublime Text.
Omitting the '-n' flag causing reuse of existing window.