Git and GitHub

Git and GitHub

University

10 Qs

quiz-placeholder

Similar activities

Understanding Git and GitHub

Understanding Git and GitHub

University

10 Qs

GitHub

GitHub

University

10 Qs

Git Bash

Git Bash

University

10 Qs

GitHub Jan12

GitHub Jan12

11th Grade - University

10 Qs

Git and Github

Git and Github

University

15 Qs

Git & GitHub

Git & GitHub

University

10 Qs

Collaborative Working using Git - Week 11

Collaborative Working using Git - Week 11

University

12 Qs

Git basics

Git basics

University

11 Qs

Git and GitHub

Git and GitHub

Assessment

Quiz

Computers

University

Hard

Created by

Paridhi Gupta

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

  1. 1. What does git clone do?

Creates a new repository

Copies an existing repository to your local machine

Initializes a new branch

Pushes changes to the remote repository

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

  1. 2. Which command is used to initialize a new Git repository?

git clone

git init

git commit

git add

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

  1. 3. What does the git status command do?

Shows the current branch

Displays the difference between staged and unstaged changes

Lists the files that have been modified

All of the above

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

  1. 4. Which of the following is a popular web-based hosting service for Git repositories?

GitLab

GitHub

Bitbucket

All of the above

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

5. Which file is commonly used to ignore specific files or directories in Git?

.ignore

.config

.gitignore

.exclude

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

6. What does the git commit -m "message" command do?

Stages all files and commits them

Commits all staged changes with a message

Stages and commits all changes

Removes files from the repository with a message

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

7. How do you create a new branch in Git?

git branch [branch-name]

git new-branch [branch-name]

git create-branch [branch-name]

git branch-create [branch-name]

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?