Last Updated: January 3, 2026
30 quizzes
List all configured connections to remote repositories for the current project
git remote -Click an option to fill the blank:
Download new commits from the default remote without changing your current branch
git Click an option to fill the blank:
Send your local commits on the current branch to its configured upstream branch
git Click an option to fill the blank:
Set the upstream branch when pushing a new local branch to the origin remote for the first time
git push my-featureClick an option to fill the blank:
Add a new connection to a teammate’s repository so you can fetch their changes
git remote teammate https://example.com/teammate/repo.gitClick an option to fill the blank:
In a typical collaborative setup, what does the remote repository mainly provide compared to your local repository?
What does git remote add actually configure?
Which statement best describes git fetch?
After setting an upstream branch, what does a plain git pull (without arguments) do?
What is origin/main typically referring to?
Order the steps to add a new remote and fetch its branches so you can inspect them locally
Drag and drop to reorder, or use the arrows.
Order the steps to safely update your local main with the latest changes from origin before starting new work
Drag and drop to reorder, or use the arrows.
Order the steps to create a local branch from a remote branch and publish your commits back to that remote branch
Drag and drop to reorder, or use the arrows.
Order the steps to set an upstream branch for an existing local branch and then synchronize it
Drag and drop to reorder, or use the arrows.
You are currently on the branch feature/login. What will this command print?
1git branch --show-currentYou just ran git remote add origin https://example.com/repo.git. What will this command output?
1git remoteYour current branch main is tracking origin/main and is 2 commits ahead of origin/main with no uncommitted changes. What will this command print?
1git status -sbYou are on main and origin/main is one commit ahead of your local main. What will this command print immediately after git fetch origin?
1git rev-parse --abbrev-ref --symbolic-full-name @{u}Identify the incorrect command in this workflow for updating a fork's main branch from the original repository
Click on the line(s) that contain the bug.
git checkout maingit fetch upstreamgit merge upstream/mastergit push origin mainFind the mistake in this sequence intended to publish a new branch and set its upstream
Click on the line(s) that contain the bug.
git checkout -b feature-reportgit commit -am 'Add report feature'git push origin -u feature-reportSpot the incorrect command in this attempt to rename a remote and update its URL
Click on the line(s) that contain the bug.
git remote rename origin old-origingit remote add origingit remote set-url origin git@github.com:user/repo.gitgit fetch originMatch each Git command with its primary purpose when working with remotes
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Match the upstream tracking-related concept to its description
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Match the remote branch terms with their meanings
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 repository and set main to track origin/main explicitly
git https://example.com/project.gitcd projectgit branch --set-upstream-to= Click an option to fill blank 1:
Complete the commands to fetch from origin and preview differences between your local main and origin/main
git origingit main Click an option to fill blank 1:
Complete the commands to create a local tracking branch from a remote branch and push new commits
git checkout -b # make changes and commitgit Click an option to fill blank 1:
Select the line that shows the remote-tracking branch for main on origin
Click on the line to select.
main* feature/login remotes/origin/main remotes/origin/feature/loginSelect the part of git status output that indicates the upstream branch for your current branch
Click on the line to select.
On branch feature/searchYour branch is up to date with 'origin/feature/search'. nothing to commit, working tree cleanSelect the line that shows the fetch URL for the origin remote
Click on the line to select.
origin git@github.com:user/repo.git (fetch)origin git@github.com:user/repo.git (push)