Last Updated: January 3, 2026
29 quizzes
Initialize version control in the current project directory so Git starts tracking files.
git Click an option to fill the blank:
Download an existing remote repository so you can work on it locally.
git https://example.com/project.gitClick an option to fill the blank:
Stage all modified and new files in the current directory for the next commit.
git .Click an option to fill the blank:
Record staged changes with a descriptive message explaining the reasoning behind them.
git commit - "Refactor payment validation"Click an option to fill the blank:
See which files are modified, staged, or untracked before committing.
git Click an option to fill the blank:
What is the main purpose of the staging area in Git?
After running git init in an existing project directory, what is the most important thing you should typically do next?
Which statement about git clone is accurate?
Which commit message subject best follows recommended conventions?
What does a pattern like node_modules/ in .gitignore do?
Order the steps to start tracking an existing project with Git and create the first commit.
Drag and drop to reorder, or use the arrows.
Order the steps to clone a remote repo, modify a file, and save the change.
Drag and drop to reorder, or use the arrows.
Order the steps to safely prepare a focused bugfix commit using the staging area.
Drag and drop to reorder, or use the arrows.
Order the steps to add a new ignore rule for build artifacts in an existing repository.
Drag and drop to reorder, or use the arrows.
You are on branch feature-login. What is the output of this command?
1git branch --show-currentYou have staged changes. What will this command print?
1git status --shortAfter creating a commit with message "Add API client", what does this show?
1git log -1 --pretty=%sFind the incorrect command in this workflow to save staged changes with a message.
Click on the line(s) that contain the bug.
git statusgit add app.jsgit commit "Implement caching layer"git statusIdentify the mistake in this attempt to create a repository and clone a remote.
Click on the line(s) that contain the bug.
mkdir project-namecd project-namegit init https://example.com/repo.gitgit statusFind the incorrect command in this workflow to ignore log files before committing.
Click on the line(s) that contain the bug.
echo "*.log" >> .gitignoregit add .git commit -m "Ignore log files"echo "debug.log" > debug.loggit add debug.loggit commit -m "Add debug log"Match each Git concept to its description.
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Match each Git command to what it mainly helps you inspect.
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Match .gitignore patterns to what they ignore.
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Complete the commands to clone a repo into api-service and check its status.
git https://example.com/api.git api-servicecd api-servicegit Click an option to fill blank 1:
Complete the commands to stage app.js and then commit it with a message.
git app.jsgit -m "Add app logic"Click an option to fill blank 1:
Complete the commands to create a .gitignore and verify ignored files.
echo "node_modules/" >> .gitignoregit mkdir node_modulestouch node_modules/temp.jsgit Click an option to fill blank 1:
Click the line that shows which files are staged for commit.
Click on the line to select.
On branch mainChanges to be committed: (use "git restore --staged <file>..." to unstage) modified: src/app.jsChanges not staged for commit: modified: README.mdClick the line that indicates the current branch name.
Click on the line to select.
On branch feature-apiChanges not staged for commit: (use "git add <file>..." to update what will be committed) modified: api/client.jsUntracked files: api/new-endpoint.txtClick the line that shows an untracked file.
Click on the line to select.
On branch mainYour branch is up to date with 'origin/main'. Untracked files: (use "git add <file>..." to include in what will be committed) scripts/deploy.sh