Git quiz 1
![Assessment](https://cf.quizizz.com/image/icons/quiz_solid_circle.png)
Assessment
•
![Created by](https://cf.quizizz.com/avatars/images/eyes9-nose6-mouth9-ad8bf2.png)
Ava H
•
Computers
•
Professional Development
•
7 plays
•
Easy
Student preview
![quiz-placeholder](https://cf.quizizz.com/img/nuxt/adp-quiz-preview.webp)
10 questions
Show answers
1.
Multiple Choice
How can you check your current git version?
git --v
git --version
git --option
git --current
2.
Multiple Choice
What command lets you create a connection between a local and remote repository?
git remote add new
git remote add origin
git remote new origin
git remote origin
3.
Multiple Choice
Describe what the following git commands do to commit history.
git reset --hard HEAD~5 (reset the current branch to the commit just before the last 5)
git merge --squash HEAD@{1} (HEAD@{1} is where the branch was just before the previous command. This command sets the state of the index to be as it would just after a merge from that commit)
reset the commit branch back before the last 5 commits, then squashes them into a single commit.
delete the last 5 commits
merges the last 5 commits into a new branch
reset the HEAD to the 5th commit in the repo, then merges to the master branch.
4.
Multiple Choice
Your current project has several branches: master, beta, and push-notifications. You've just finished the notification feature in the push-notification branch, and you want to commit it to beta branch. How can you accomplish this?
checkout the beta branch and run git merge push-notification
checkout the push-notifications branch and run git merge beta
checkout the master branch and run git merge beta ->push-notification
Delete the push-notification branch and it will be commited to the master branch automatically.
5.
Multiple Choice
Which of the following is true when you use the following command?
git add -A
All new files are staged
Only updated files are staged.
Files are staged in alphabetical order
all new and updated files are staged.
Explore all questions with a free account
Find a similar activity
Create activity tailored to your needs using
Git & GitHub Quiz 2 Codingnest
![assessment](https://cf.quizizz.com/image/icons/quiz_solid_circle.png)
•
Professional Development
git and github
![assessment](https://cf.quizizz.com/image/icons/quiz_solid_circle.png)
•
Professional Development
Git Bash Quiz
![assessment](https://cf.quizizz.com/image/icons/quiz_solid_circle.png)
•
Professional Development
Git Bash Quiz
![assessment](https://cf.quizizz.com/image/icons/quiz_solid_circle.png)
•
Professional Development
Git Quiz
![assessment](https://cf.quizizz.com/image/icons/quiz_solid_circle.png)
•
Professional Development
git quiz 5
![assessment](https://cf.quizizz.com/image/icons/quiz_solid_circle.png)
•
Professional Development
git quiz 3
![assessment](https://cf.quizizz.com/image/icons/quiz_solid_circle.png)
•
Professional Development
git commands
![assessment](https://cf.quizizz.com/image/icons/quiz_solid_circle.png)
•
Professional Development