Git and GitHub

Git and GitHub

University

10 Qs

quiz-placeholder

Similar activities

Git & GitHub

Git & GitHub

University

10 Qs

Git Bash Quiz

Git Bash Quiz

University

10 Qs

Git hub Pull Request

Git hub Pull Request

University

10 Qs

Intro to GitHub

Intro to GitHub

University

7 Qs

9BN5WcJU3nv8cQSTPOYKe1Kc5ASAfiKMTT/mjbrAcRuQ9f6LlNM/xL9iJhpxH1tK

9BN5WcJU3nv8cQSTPOYKe1Kc5ASAfiKMTT/mjbrAcRuQ9f6LlNM/xL9iJhpxH1tK

University

15 Qs

PHP Tours Meetup #16 (Gitkraken + API Platform)

PHP Tours Meetup #16 (Gitkraken + API Platform)

University - Professional Development

10 Qs

Desarrollo de Aplicaciones Modernas y Herramientas.

Desarrollo de Aplicaciones Modernas y Herramientas.

1st Grade - Professional Development

15 Qs

Introduction to Git and Github

Introduction to Git and Github

University

10 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?