Last Updated: January 3, 2026
30 quizzes
Upload your local commits for the main branch to the remote repository named origin for review via a pull request
git origin mainClick an option to fill the blank:
Create a new local Git repository for your project before pushing it to GitHub
git Click an option to fill the blank:
Stage all modified and new files so they are included in the next commit you will push to GitHub
git .Click an option to fill the blank:
Set the URL for the origin remote to use SSH when interacting with GitHub
git remote origin git@github.com:username/repo.gitClick an option to fill the blank:
Create a new branch locally to develop a feature that you will later publish to GitHub via a pull request
git -b feature/login-formClick an option to fill the blank:
Which statement best describes GitHub compared to Git?
When creating a new GitHub repository for an open-source project, which visibility should you choose?
Why does GitHub recommend using a Personal Access Token (PAT) with HTTPS instead of a password?
What is the main purpose of a GitHub Pull Request?
Which GitHub feature is best suited for tracking bugs, feature requests, and tasks?
Order the steps to create a new repository on GitHub via the UI and push an existing local project to it over HTTPS.
Drag and drop to reorder, or use the arrows.
Order the steps to generate an SSH key and connect it to GitHub for authenticating Git operations.
Drag and drop to reorder, or use the arrows.
Order the steps to create a pull request for a completed feature branch on GitHub.
Drag and drop to reorder, or use the arrows.
Order the steps to publish a static site with GitHub Pages from an existing repository.
Drag and drop to reorder, or use the arrows.
You are on branch feature/docs and want to confirm the current branch before opening a pull request. What will this command output?
1git branch --show-currentYou have just created a tag v1.0.0 for a release. What will this command output?
1git describe --tags --exact-matchYou are on branch main and have just run git commit -m "Add CI workflow". What will this command output?
1git log -1 --pretty=%sIn a repository with remote origin set to git@github.com:username/project.git, what does this command print?
1git remote get-url originFind the incorrect command in this workflow for cloning a GitHub repo over HTTPS and pushing a change.
Click on the line(s) that contain the bug.
git clone git@github.com:username/website.gitcd websitegit checkout -b fix-linkecho "Updated" >> README.mdgit add README.mdgit commit -m "Fix link in README"git push https://github.com/username/website.git fix-linkFind the incorrect command in this workflow for preparing a GitHub release tag.
Click on the line(s) that contain the bug.
git checkout maingit pull origin maingit tag v2.0.0 -m "Release 2.0.0"git push origin maingit push origin --tagsFind the incorrect command in this workflow for creating a GitHub Actions CI workflow file.
Click on the line(s) that contain the bug.
git checkout -b ci-setupmkdir -p .github/workflowsecho "name: CI" > .github/workflows/ci.ymlgit add .github/workflows/ci.ymlgit commit CI workflow addedgit push origin ci-setupMatch each GitHub feature with its primary purpose.
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Match each GitHub Issues element with its role in task tracking.
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Match each Git command with how it relates to GitHub remotes.
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 over SSH and push a new branch to GitHub.
git clone {{1 }}cd repo-namegit checkout -b {{2 }}git push -u {{3 }} {{4 }}Click an option to fill blank 1:
Complete the commands to configure Git to use your GitHub email for commits and view the current configuration.
git config --global user.email {{1 }}git config --global {{2 }}Click an option to fill blank 1:
Complete the commands to create and push an annotated tag for a GitHub release.
git tag -a {{1 }} -m {{2 }}git push {{3 }} {{4 }}Click an option to fill blank 1:
Click the line that indicates the current branch before opening a pull request.
Click on the line to select.
main* feature/payment-flow bugfix/header-alignmentClick the line that shows the GitHub remote URL using SSH.
Click on the line to select.
origin git@github.com:username/app.git (fetch)origin git@github.com:username/app.git (push)Click the workflow job name line in this GitHub Actions log snippet.
Click on the line to select.
Run actions/checkout@v4Run npm installJob name: build-and-testRun npm test