0
0
Gitdevops~10 mins

Git configuration (user.name, user.email) - 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 your Git user name globally.

Git
git config --global user.name [1]
Drag options to blanks, or click blank then click option'
A"John Doe"
Buser.email
C--global
Dcommit
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to use quotes around the user name.
Using user.email instead of user.name.
Omitting the --global flag.
2fill in blank
medium

Complete the command to set your Git email globally.

Git
git config --global user.email [1]
Drag options to blanks, or click blank then click option'
AJohn Doe
B--local
C"john@example.com"
Duser.name
Attempts:
3 left
💡 Hint
Common Mistakes
Using user.name instead of user.email.
Not using quotes around the email.
Using --local instead of --global.
3fill in blank
hard

Fix the error in the command to set the user name globally.

Git
git config --global user.name [1]
Drag options to blanks, or click blank then click option'
AJohn Doe
B"John Doe"
Cjohn@example.com
Duser.email
Attempts:
3 left
💡 Hint
Common Mistakes
Using the email instead of the name.
Not using quotes around the name with spaces.
Using user.email instead of user.name.
4fill in blank
hard

Fill both blanks to list your Git configuration for user name and email.

Git
git config --get [1] && git config --get [2]
Drag options to blanks, or click blank then click option'
Auser.name
Buser.email
C--global
Duser.password
Attempts:
3 left
💡 Hint
Common Mistakes
Using --global instead of the key names.
Using user.password which is not a valid config key.
Mixing up user.name and user.email.
5fill in blank
hard

Fill all three blanks to set your Git user name and email locally, then verify the email.

Git
git config [1] user.name [2] && git config [1] user.email [3] && git config --get user.email
Drag options to blanks, or click blank then click option'
A--local
B"Jane Smith"
C"jane@example.com"
D--global
Attempts:
3 left
💡 Hint
Common Mistakes
Using --global instead of --local for local config.
Not quoting the name or email.
Not verifying the email after setting.