0
0
Gitdevops~10 mins

.gitconfig file structure - Interactive Code Practice

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

Complete the code to specify the user name in the .gitconfig file.

Git
[user]
	name = [1]
Drag options to blanks, or click blank then click option'
Auser.name
BJohn Doe
Cusername
Dname.user
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'user.name' instead of the actual name.
Confusing the key and value positions.
2fill in blank
medium

Complete the code to set the user email in the .gitconfig file.

Git
[user]
	email = [1]
Drag options to blanks, or click blank then click option'
Auser.email
Bjohn@domain
Cemail.user
Djohn@example.com
Attempts:
3 left
💡 Hint
Common Mistakes
Using a key name instead of an email address.
Leaving out the domain part of the email.
3fill in blank
hard

Fix the error in the .gitconfig snippet to correctly set the default editor.

Git
[core]
	editor = [1]
Drag options to blanks, or click blank then click option'
Avim
Beditor
Cdefault
Dedit
Attempts:
3 left
💡 Hint
Common Mistakes
Using generic words like 'edit' or 'default' instead of an editor name.
Confusing the key and value.
4fill in blank
hard

Fill both blanks to configure Git to use the credential helper cache with a timeout.

Git
[credential]
	helper = [1] --timeout=[2]
Drag options to blanks, or click blank then click option'
Acache
B3600
Cstore
Dpassword
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'store' instead of 'cache' for temporary storage.
Setting timeout to a non-numeric value.
5fill in blank
hard

Fill all three blanks to create an alias for 'git status' as 'st' in the .gitconfig file.

Git
[alias]
	[1] = [2] [3]
Drag options to blanks, or click blank then click option'
Ast
Bstatus
C--short
Dcommit
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'commit' instead of 'status' for the alias.
Omitting the '--short' option for concise output.