0
0
Gitdevops~10 mins

Why configuration improves workflow in Git - Test Your Understanding

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

Complete the code to set your user email in Git configuration.

Git
git config --global user.email [1]
Drag options to blanks, or click blank then click option'
Auser_email
Bemail@example
Cuser@example.com
D"user@example.com"
Attempts:
3 left
💡 Hint
Common Mistakes
Adding quotes around the email address
Using an invalid email format
2fill in blank
medium

Complete the command to check the current Git configuration for user name.

Git
git config --get [1]
Drag options to blanks, or click blank then click option'
Auser.name
Busername
Cuser.email
Duser
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'username' instead of 'user.name'
Trying to get 'user' only
3fill in blank
hard

Fix the error in the command to set the default branch name to 'main'.

Git
git config --global init.[1] main
Drag options to blanks, or click blank then click option'
Adefault-branch
BdefaultBranch
Cinitbranch
Dbranch
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'branch' instead of 'defaultBranch'
Using hyphens instead of camelCase like 'default-branch'
4fill in blank
hard

Fill both blanks to create a Git alias named 'co' for 'checkout'.

Git
git config --global alias.[1] [2]
Drag options to blanks, or click blank then click option'
Aco
Bcheckout
Ccommit
Dclone
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'commit' or 'clone' instead of 'checkout'
Swapping alias and command positions
5fill in blank
hard

Fill all three blanks to configure Git to ignore file mode changes and set the editor to nano.

Git
git config --global core.[1] false
git config --global core.[2] [3]
Drag options to blanks, or click blank then click option'
Afilemode
Beditor
Cnano
Dautocrlf
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing 'autocrlf' with 'filemode'
Using wrong editor name
Setting filemode to true instead of false