Git and GitHub BootCamp Day 3

Git and GitHub BootCamp Day 3

University

9 Qs

quiz-placeholder

Similar activities

Web Apps 02 - MeteorJS

Web Apps 02 - MeteorJS

University

12 Qs

QUIZ #1 - SPSS

QUIZ #1 - SPSS

University

10 Qs

GIT COURSE

GIT COURSE

University

13 Qs

Quiz 4

Quiz 4

University

10 Qs

DevOps

DevOps

University

10 Qs

Git & GitHub

Git & GitHub

University

10 Qs

SO-750

SO-750

University

10 Qs

Day 10 - Networking & Security I - 1st Review of Day 9

Day 10 - Networking & Security I - 1st Review of Day 9

University

10 Qs

Git and GitHub BootCamp Day 3

Git and GitHub BootCamp Day 3

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

SHAMEER SHAIK

FREE Resource

AI

Enhance your content in a minute

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

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 7 pts

What is the primary purpose of the .gitignore file in a Git repository?

To store commit messages

To specify files and directories that Git should ignore and not track

To list all branches in the repo

To configure remote repositories

2.

MULTIPLE CHOICE QUESTION

20 sec • 7 pts

Which Git command is used to create a local copy of a remote repository?

git init

git clone

git push

git branch

3.

MULTIPLE CHOICE QUESTION

20 sec • 7 pts

What does the git add command do?

Saves changes to the remote repository

Stages changes in the working directory for the next commit

Views the commit history

Switches between branches

4.

MULTIPLE CHOICE QUESTION

20 sec • 7 pts

What is the GitHub Student Developer Pack?

A paid subscription for advanced Git features

A free program offering students discounted or free access to developer tools, services, and credits

A certification exam for Git users

A template repository for student projects

5.

MULTIPLE CHOICE QUESTION

20 sec • 7 pts

What does git push do?

Retrieves changes from the remote

Uploads your local commits to the remote repository

Stages files for commit

Creates a new repository

6.

MULTIPLE CHOICE QUESTION

20 sec • 7 pts

Which command retrieves changes from the remote without merging them?

git pull

git fetch

git merge

git rebase

7.

MULTIPLE CHOICE QUESTION

20 sec • 7 pts

Which command displays the full commit history of the repository?

git status

git log

git diff

git add

8.

MULTIPLE CHOICE QUESTION

20 sec • 7 pts

What does the git init command do?

Downloads a remote repository

Initializes a new local Git repository

Pushes changes to GitHub

Merges two branches

9.

MULTIPLE CHOICE QUESTION

20 sec • 7 pts

Which command is used to delete a local branch?

git delete branch-name

git branch -d branch-name

git rm branch-name

git checkout -d branch-name