Mastering Git & GitHub Basics

Mastering Git & GitHub Basics

Professional Development

10 Qs

quiz-placeholder

Similar activities

Git & Github

Git & Github

Professional Development

10 Qs

Git Bash Quiz

Git Bash Quiz

Professional Development

15 Qs

Git Quiz

Git Quiz

Professional Development

10 Qs

DevNet Express

DevNet Express

10th Grade - Professional Development

11 Qs

Git quiz 1

Git quiz 1

Professional Development

10 Qs

Chapter 2 Binar SYNRGY 6

Chapter 2 Binar SYNRGY 6

Professional Development

15 Qs

git basics

git basics

Professional Development

10 Qs

Git & GitHub Quiz

Git & GitHub Quiz

Professional Development

15 Qs

Mastering Git & GitHub Basics

Mastering Git & GitHub Basics

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Sindhu Manivannan

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Aditi is starting a new project and wants to set up a version control system for her code. What command should she use to initialize a new Git repository?

git start

git init

git create

git newrepo

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Nikita wants to check the current status of her Git repository. How can she do that?

Type 'git current' for repository details.

Run 'git info' to see the status.

Use the command 'git check'.

Use the command 'git status'.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Advait is working on a project and has made some changes to the code. What command does he use to stage changes for a commit?

git push

git stage

git add

git commit

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

During a group project, Sneha made several changes to the codebase. Which command should she use to save those changes to the local repository?

git clone

git push

git fetch

git commit

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Aditi is working on a project and has made several changes to her local copy of the code. What is the purpose of the 'git push' command?

To clone a remote repository to the local machine.

To delete local changes from a remote repository.

To upload local changes to a remote repository.

To view the history of commits in a repository.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Neha wants to create a copy of a remote repository for her project. What command would she use?

git pull

git fetch

git clone

git copy

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Eshaan is working on a project and wants to prepare his changes for the next update. What does the 'git add .' command do?

Stages all changes in the current directory for the next commit.

Removes all files from the current directory.

Commits all changes in the current directory immediately.

Displays the status of the current directory without staging changes.

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?