All Tracks/quiz git/
Đang tải...
Hướng dẫn thử thách
1 / 1

Git Quiz

To pass the quiz, you must correctly answer at least 18 of the 20 questions below. # --quizzes-- ## --quiz-- ### --question-- #### --text-- What is `git`? #### --distractors-- A popular type of accessibility tool. --- A commonly used linter in software projects. --- A special type of JavaScript library. #### --answer-- A version control system allows you to track and manage changes in your project. ### --question-- #### --text-- Which of the following is a popular cloud based version control provider? #### --distractors-- Spring Boot --- Laravel --- Remix #### --answer-- GitHub ### --question-- #### --text-- What does the `git config` command do? #### --distractors-- Sets configuration variables for rebasing your changes. --- Sets configurations for managing only remote repositories on GitLab. --- Sets configurations for resolving merge conflicts. #### --answer-- Sets configuration variables that are responsible for how Git operates on your machine. ### --question-- #### --text-- Which command shows the currently installed Git version on your machine? #### --distractors-- `git --versions` --- `git --setVersion` --- `git --set` #### --answer-- `git --version` ### --question-- #### --text-- Which of the following is a tool used to do GitHub-specific tasks without leaving the command line? #### --distractors-- GitHub CI/CD --- GitHub Actions --- GitHub Pages #### --answer-- GitHub CLI ### --question-- #### --text-- Which of the following is a feature that lets you automate workflows directly in your GitHub repository including building, testing, and deploying your code? #### --distractors-- GitHub Pipelines --- GitHub Cloud --- GitHub API #### --answer-- GitHub Actions ### --question-- #### --text-- Which of the following commands will initialize an empty `git` repository? #### --distractors-- `git status` --- `git set` --- `git log` #### --answer-- `git init` ### --question-- #### --text-- What does the `git push` command do? #### --distractors-- This command is used to push up the entire Git history to GitHub. --- This command is used to push up changes from the remote repository to your local machine. --- This command is used to push up your code to GitHub and automatically merge it into the `main` branch. #### --answer-- This command is used to push your local commits to a remote repository. ### --question-- #### --text-- Which of the following commands is used to clone a repository? #### --distractors-- `git cloning` --- `git cloned` --- `git clones` #### --answer-- `git clone` ### --question-- #### --text-- Which of the following commands is used to list all prior commits with helpful information like the author, date of commit, commit message and commit hash? #### --distractors-- `git rebase` --- `git status` --- `git commit` #### --answer-- `git log` ### --question-- #### --text-- Which of the following commands will list all remote repositories associated with your local Git repository? #### --distractors-- `git rebase -v` --- `git pull -v` --- `git checkout -v` #### --answer-- `git remote -v` ### --question-- #### --text-- What does the `git reset` command do? #### --distractors-- This command allows you to reset all attempts at resolving merge conflicts. --- This command allows you to reset all attempts at a `git rebase`. --- This command allows you to reset all commits for the repository. #### --answer-- This command allows you to reset the current state of a branch. ### --question-- #### --text-- What is a pull request? #### --distractors-- A request to combine a sequence of commits from one branch onto another. --- A request to resolve all merge conflicts. --- A request to remove all commits from a repository. #### --answer-- A request to pull changes in from your branch into the target branch. ### --question-- #### --text-- What does the `main` branch represent in a project? #### --distractors-- It represents the primary documentation branch for an application. --- It represents the hotfix branch for an application. --- It represents the main feature branch for an application. #### --answer-- It represents the primary or production branch for an application. ### --question-- #### --text-- What is GitHub Pages best used for? #### --distractors-- It is best deploying C# and Unity games. --- It is best for deploying Python-only applications. --- It is best for deploying back-end heavy websites. #### --answer-- It is best for deploying static sites. ### --question-- #### --text-- Which of the following commands is used to show the current state of your working directory? #### --distractors-- `git show` --- `git check` --- `git update` #### --answer-- `git status` ### --question-- #### --text-- What command do you use to fetch changes from the remote repository? #### --distractors-- `git get` --- `git sync` --- `git update` #### --answer-- `git fetch` ### --question-- #### --text-- What is a `.gitignore` file? #### --distractors-- A special type of file used to show your entire `git` history. --- A special type of file used to show diffs in your changes. --- A special type of file used to resolve conflicts for a project. #### --answer-- A special type of file used to tell `git` not to track certain files and folders in a project. ### --question-- #### --text-- Which of the following commands is used to list all of your local branches? #### --distractors-- `git show` --- `git log` --- `git list` #### --answer-- `git branch` ### --question-- #### --text-- Which of the following commands is used to move or combine a sequence of commits from one branch onto another? #### --distractors-- `git remote` --- `git merge` --- `git switch` #### --answer-- `git rebase`
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.php
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵
Test Output
Thử thách này không có bài test tự động. Hãy quan sát kết quả trực tiếp ở khung Preview.