git and github

Quiz
•
Computers
•
Professional Development
•
Hard
Shakul Malik
Used 6+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You have just finished working on a feature branch and want to merge it into the main branch. What Git command would you use?
git commit -m "Merge feature-branch"
git push origin main
git merge main
git merge feature-branch
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You accidentally committed sensitive information in a recent Git commit. What command can be used to remove this commit from the version history?
git reset HEAD~1
git revert HEAD~1
git clean -fd
git checkout HEAD~1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When working with Git, what command is used to create a new branch and switch to it at the same time?
git branch -b new-branch
git checkout -b new-branch
git branch new-branch
git checkout new-branch
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You have made changes to multiple files, but you only want to stage and commit a specific file. What command will you use?
git commit -m "Commit all changes"
git stage filename
git add filename
git commit -m "Commit specific file"
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Your colleague has pushed changes to a branch, and you want to incorporate those changes into your local repository. What command would you use?
git clone branch-name
git fetch origin branch-name
git pull origin branch-name
git push origin branch-name
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You want to see the commit history of a Git repository in a graphical format. What command will you use?
git history -g
git log --graph
git show --graph
git graph log
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You want to create a copy of a remote repository on your local machine. What command should you use?
git clone <repository-url>
git copy <repository-url>
git pull <repository-url>
git fetch <repository-url>
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
POSTTEST JNCIA

Quiz
•
Professional Development
10 questions
git quiz

Quiz
•
Professional Development
9 questions
GIT and Portfolio as Data Science - Soal Serius

Quiz
•
Professional Development
10 questions
Quiz tentang Git dan GitHub

Quiz
•
Professional Development
15 questions
CloudBinary_Jenkins_Quiz- 2

Quiz
•
Professional Development
10 questions
Azure_DevOps_Mod1,2_Akshay

Quiz
•
Professional Development
14 questions
Cuestionario Git

Quiz
•
Professional Development
15 questions
Mastering HTML and CSS Concepts

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development