Search Header Logo

Getting Started with git init

Authored by Hack4Bengal Hack4Bengal

Computers

University

Used 4+ times

Getting Started with git init
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

20 sec • 1 pt

Command to remove file

touch File_Name

rm file_name

rm file_name

git delete File_Name

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How to add a file to staginging area?

git add

git commit add

git remote add

git log add

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the need to branch?

Create Backups

It's necessary to make a project

Split Code into multiple parts

Multiple people can collaborate prallely

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How to check previous changes on the code?

git status

git commit

git log

git checkout

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How to create a test1 branch from main branch?

git create test1

git checkout test1

git checkout -b test1

git checkout b -test1

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the need to fork a repository?

PR (Pull requests) cannot be made without forking

Aise hi acha lagta hai

Commits cannot be made to the main repository if not a contributor

You cannot clone without forking

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How to add a remote in Git?

git commit remote add REMOTE_LINK

git remote add origin REMOTE_LINK

git push origin REMOTE_LINK

git origin add REMOTE_LINK

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?