Search Header Logo

Mastering Git & GitHub Basics

Authored by Sindhu Manivannan

Computers

Professional Development

Used 3+ times

Mastering Git & GitHub Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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.

Access all questions and much more by creating a free account

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

Already have an account?