Git

Git

Professional Development

32 Qs

quiz-placeholder

Similar activities

Oracle Architecture

Oracle Architecture

Professional Development

30 Qs

PA CENTER TIN HOC UDCB

PA CENTER TIN HOC UDCB

Professional Development

30 Qs

Tin 9 - Giữa kỳ 2

Tin 9 - Giữa kỳ 2

Professional Development

30 Qs

Tin 7 - Giữa kỳ 2

Tin 7 - Giữa kỳ 2

Professional Development

28 Qs

TestPhp Final

TestPhp Final

Professional Development

37 Qs

CHTN PPT

CHTN PPT

Professional Development

30 Qs

tin9 ck1

tin9 ck1

Professional Development

35 Qs

CompTIA A+ (Core 2) Part 1

CompTIA A+ (Core 2) Part 1

Professional Development

30 Qs

Git

Git

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Nguyễn Duy

Used 17+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

32 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh nào để khởi tạo 1 local git repo

git add

git commit

git push

git init

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào để thêm các file/folder từ working directory vào staging

git commit

git restore --cached

git clone

git add

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kiểm tra trạng thái của local git repo bằng lệnh

git status

git check

git checkout

git fetch

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

Kiểm tra trạng thái repo được kết quả như hình trên

Lệnh nào để add cả 2 file vào staging:

git add

git add react.js && vue.js

git add .

git add react.js vue.js

git commit -m

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

Cho 1 repo có trạng thái như trong hình

Lệnh nào để commit chỉ 1 file vue.js (không commit file react.js) vào local repo

git commit -m "add vue"

git add . && git commit -m "add vue"

git add vue.js && git commit -m "add vue"

git commit -am "add vue"

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

Cho 1 local repo có trạng thái như trong hình

Lệnh nào để commit cả 2 file vào local repo

git commit -m "add 2 files"

git add react.js vue.js

git add .

git checkout -b test

git init

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

Cho 1 local repo có trạng thái như trong hình

Lệnh nào để commit chỉ 1 file react.js (không commit file vue.js) vào local repo

git commit -m "add react"

git add react.js && git commit -m "update react"

git reset HEAD vue.js && git commit -m "add react"

git add .

git add . && git commit -m "add react"

Create a free account and access millions of resources

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

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

Already have an account?