AlgoMaster Logo

Advanced Configuration - Quiz

1 min readUpdated December 2, 2025
Listen to this chapter
Unlock Audio

Advanced Configuration Exercises

30 quizzes

1
Code Completion

Show all configuration values that affect the current repository

shell
1
git --show-origin --show-scope

Click an option to fill the blank:

2
Code Completion

Define a user email that applies to all repositories for your user account

shell
1
git config -- user.email "dev@example.com"

Click an option to fill the blank:

3
Code Completion

Create a shortcut so that running `git co` checks out branches

shell
1
git config --global alias.co

Click an option to fill the blank:

4
Code Completion

Force Git to always use colors when showing command output

shell
1
git config --global color.ui

Click an option to fill the blank:

5
Code Completion

Configure Meld as the tool Git launches to resolve merge conflicts globally

shell
1
git config --global merge.tool

Click an option to fill the blank:

6
Multiple Choice

Which config level has the highest precedence when all three levels define the same key?

7
Multiple Choice

Which configuration is best suited for setting a corporate-wide default merge strategy?

8
Multiple Choice

What is the main benefit of using Git aliases?

9
Multiple Choice

What does a conditional include with includeIf "gitdir:/work/" typically control?

10
Multiple Choice

After configuring git mergetool, which command starts the visual merge resolution?

11
Sequencing

Order the steps to configure different user identities for work and personal repositories using conditional includes.

Drag and drop to reorder, or use the arrows.

12
Sequencing

Order the steps to create and use a custom Git command script that lists open issues.

Drag and drop to reorder, or use the arrows.

13
Sequencing

Order the steps to configure and use an external diff tool for reviewing staged changes.

Drag and drop to reorder, or use the arrows.

14
Sequencing

Order the steps to define and use an alias that shows a decorated one-line log.

Drag and drop to reorder, or use the arrows.

15
Output Prediction

You are on branch feature-login. What will this command print?

1git branch --show-current
16
Output Prediction

Your global user.email is dev@example.com and local user.email is project@example.com. Inside the repository, what will this print?

1git config user.email
17
Output Prediction

You configured alias.st = status. What will this print when run in a clean repository?

1git config alias.st
18
Output Prediction

You set diff.tool to meld in your global config. What does this show?

1git config diff.tool
19
Bug Spotting

Identify the incorrect command in this attempt to set local repository user identity.

Click on the line(s) that contain the bug.

shell
1
cd /path/to/repo
2
git config --global user.name "Project Dev"
3
git config user.email "project@example.com"
4
git config --local color.ui auto
20
Bug Spotting

Find the incorrect command in this workflow to configure and run a custom merge tool.

Click on the line(s) that contain the bug.

shell
1
git config --global merge.tool meld
2
git config --global mergetool.prompt true
3
git mergetool --config
4
git mergetool
21
Bug Spotting

Locate the incorrect command in this attempt to define and use a log alias.

Click on the line(s) that contain the bug.

shell
1
git config --global alias.lg "log --oneline --graph --decorate --all"
2
git lg --global
3
git lg
22
Matching

Match each config level with its typical use.

Click an item on the left, then click its match on the right. Click a matched item to unmatch.

23
Matching

Match each alias or custom command concept with its description.

Click an item on the left, then click its match on the right. Click a matched item to unmatch.

24
Matching

Match diff and merge-related config keys to their effects.

Click an item on the left, then click its match on the right. Click a matched item to unmatch.

25
Fill in the Blanks

Complete the commands to set conditional configs for a work directory.

shell
1
git config --global includeIf..path
2
cat

Click an option to fill blank 1:

26
Fill in the Blanks

Complete the commands to configure and use a custom diff tool without prompts.

shell
1
git config --global diff.tool
2
git config --global difftool.prompt
3
git

Click an option to fill blank 1:

27
Fill in the Blanks

Complete the commands to create and verify a global alias for a short status command.

shell
1
git config --global alias.
2
git config alias.

Click an option to fill blank 1:

28
Hotspot Selection

Click the line that shows the configuration value coming from the local repository config.

Click on the line to select.

shell
1
user.name=Dev One	file:.git/config	local
2
user.email=dev@example.com	file:~/.gitconfig	global
3
color.ui=auto	file:/etc/gitconfig	system
29
Hotspot Selection

Click the line where the alias is defined.

Click on the line to select.

shell
1
user.name=Dev One
2
alias.co=checkout
3
color.ui=auto
30
Hotspot Selection

Click the line that indicates the currently checked out branch in this branch list.

Click on the line to select.

shell
1
  main
2
* feature-conditional-config
3
  experiment-difftool