Search Header Logo

git basics

Authored by Sahil Dhawan

Computers

Professional Development

Used 7+ times

git basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

How do you start git?

$ git init

$ git clone

$ git start

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Show a list of all the commits that have been made.

$ git commits

$ git log

$ git branch

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Create a branch called working

$ git branch -d working

$ git pull origin working

$ git checkout -b working

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Put everything up on the remote repository.

$ git commit

$ git add

$ git push

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

How do you determine the current state of the project?

$ git log

$ git state

$ git status

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Move all your changes since your last commit to the staging area.

$ git commit .

$ git add .

$ git push .

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Switch to the branch "working"

$ git checkout working

$ git checkout -b working

$ git checkout -d working

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?