Search Header Logo

Git

Authored by Nguyễn Duy

Computers

Professional Development

32 Questions

Used 17+ times

Git
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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"

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?