Last Updated: December 2, 2025
29 quizzes
Initialize version control in an existing project directory
git Click an option to fill the blank:
View the full commit history of the current repository
git Click an option to fill the blank:
Configure your global email identity used in all repositories
git config --global user. "you@example.com"Click an option to fill the blank:
Create a lightweight tag to mark the current commit as v1.0.0
git tag Click an option to fill the blank:
Stage all modified and new files in the current repository before committing
git .Click an option to fill the blank:
What is Git primarily used for?
In Git’s object model, which object represents a file’s contents?
Which best describes a key benefit of distributed version control?
Why did Linus Torvalds start Git’s development in 2005?
Which git config scope affects all repositories for the current user by default?
Order the steps to start tracking an existing project with Git and make the first commit.
Drag and drop to reorder, or use the arrows.
Order the steps to clone a remote repository and configure your identity before committing.
Drag and drop to reorder, or use the arrows.
Order the steps to create a feature branch, work on it, and merge it back.
Drag and drop to reorder, or use the arrows.
Order the steps to configure Git to use a preferred editor globally.
Drag and drop to reorder, or use the arrows.
You are on a branch named feature/login. What will this command print?
1git branch --show-currentAfter setting your name globally, what will this command print?
1git config user.nameYou have made a commit with message "Initial commit". What will this command print?
1git log -1 --pretty=%sIdentify the incorrect command in this sequence for creating the first commit.
Click on the line(s) that contain the bug.
git initlsgit add .git commit -m Initial commitgit statusFind the incorrect command while configuring your identity and making a commit.
Click on the line(s) that contain the bug.
git config --global user.name "Alice"git config --global user.mail "alice@example.com"git add main.pygit commit -m "Add main script"Spot the incorrect command in this workflow to clone a repo and create a feature branch.
Click on the line(s) that contain the bug.
git clone https://example.com/repo.gitcd repogit branch feature-logingit checkout feature-logingit commit -m "Start feature"Match each Git object type to its role in the repository.
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Match each configuration-related command to what it inspects or changes.
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Match each concept to centralized or distributed version control.
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Complete the commands to configure your global identity and view it.
git config --global user. "Alice"git config --global user. "alice@example.com"git config Click an option to fill blank 1:
Complete the commands to initialize a repo and create the first snapshot.
git git .git commit -m "Initial snapshot"Click an option to fill blank 1:
Complete the commands to configure line endings based on your workflow.
git config --global core. truegit config --global core. "vim"Click an option to fill blank 1:
Click the line that shows the current branch after cloning and checking out a feature branch.
Click on the line to select.
main* feature/signup feature/loginClick the part of the status output that indicates a file is staged for commit.
Click on the line to select.
On branch feature/apiChanges to be committed: (use "git restore --staged <file>..." to unstage) new file: api/server.js Changes not staged for commit: (use "git add <file>..." to update what will be committed) modified: README.mdClick the line that shows the commit message subject in this short log output.
Click on the line to select.
commit 3f5c2e8b9a7c4e9e9c0af0a1a2b3c4d5e6f7a8bAuthor: Alice Developer <alice@example.com>Date: Tue Nov 12 10:15:32 2024 +0000 Add basic authentication feature