git and github

git and github

Professional Development

13 Qs

quiz-placeholder

Similar activities

Python Quiz For Starters

Python Quiz For Starters

3rd Grade - Professional Development

17 Qs

SEC+ Ch.6 Review Test

SEC+ Ch.6 Review Test

Professional Development

15 Qs

PDS - 04225 Pointers & Dynamic Arrays - Chapter 8

PDS - 04225 Pointers & Dynamic Arrays - Chapter 8

University - Professional Development

10 Qs

Docs of Google!

Docs of Google!

Professional Development

10 Qs

Introduction to the Internet of Things

Introduction to the Internet of Things

12th Grade - Professional Development

15 Qs

Keyboarding Vocabulary Part 1

Keyboarding Vocabulary Part 1

5th Grade - Professional Development

11 Qs

Linux Fundamentals

Linux Fundamentals

Professional Development

18 Qs

Node basics

Node basics

Professional Development

12 Qs

git and github

git and github

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Shakul Malik

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?