30 quizzes
Show all configuration values that affect the current repository
git --show-origin --show-scopeClick an option to fill the blank:
Define a user email that applies to all repositories for your user account
git config -- user.email "dev@example.com"Click an option to fill the blank:
Create a shortcut so that running `git co` checks out branches
git config --global alias.co Click an option to fill the blank:
Force Git to always use colors when showing command output
git config --global color.ui Click an option to fill the blank:
Configure Meld as the tool Git launches to resolve merge conflicts globally
git config --global merge.tool Click an option to fill the blank:
Which config level has the highest precedence when all three levels define the same key?
Which configuration is best suited for setting a corporate-wide default merge strategy?
What is the main benefit of using Git aliases?
What does a conditional include with includeIf "gitdir:/work/" typically control?
After configuring git mergetool, which command starts the visual merge resolution?
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.
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.
Order the steps to configure and use an external diff tool for reviewing staged changes.
Drag and drop to reorder, or use the arrows.
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.
You are on branch feature-login. What will this command print?
1git branch --show-currentYour 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.emailYou configured alias.st = status. What will this print when run in a clean repository?
1git config alias.stYou set diff.tool to meld in your global config. What does this show?
1git config diff.toolIdentify the incorrect command in this attempt to set local repository user identity.
Click on the line(s) that contain the bug.
cd /path/to/repogit config --global user.name "Project Dev"git config user.email "project@example.com"git config --local color.ui autoFind the incorrect command in this workflow to configure and run a custom merge tool.
Click on the line(s) that contain the bug.
git config --global merge.tool meldgit config --global mergetool.prompt truegit mergetool --configgit mergetoolLocate the incorrect command in this attempt to define and use a log alias.
Click on the line(s) that contain the bug.
git config --global alias.lg "log --oneline --graph --decorate --all"git lg --globalgit lgMatch 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.
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.
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.
Complete the commands to set conditional configs for a work directory.
git config --global includeIf..path cat Click an option to fill blank 1:
Complete the commands to configure and use a custom diff tool without prompts.
git config --global diff.tool git config --global difftool.prompt git Click an option to fill blank 1:
Complete the commands to create and verify a global alias for a short status command.
git config --global alias. git config alias.Click an option to fill blank 1:
Click the line that shows the configuration value coming from the local repository config.
Click on the line to select.
user.name=Dev One file:.git/config localuser.email=dev@example.com file:~/.gitconfig globalcolor.ui=auto file:/etc/gitconfig systemClick the line where the alias is defined.
Click on the line to select.
user.name=Dev Onealias.co=checkoutcolor.ui=autoClick the line that indicates the currently checked out branch in this branch list.
Click on the line to select.
main* feature-conditional-config experiment-difftool