Module2Flashcard

Module2Flashcard

Assessment

Flashcard

Other

University

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

7 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which command stages all changes in the working directory?

Back

git add .

2.

FLASHCARD QUESTION

Front

What does git commit -m "Initial commit" do?

Back

Records staged changes

3.

FLASHCARD QUESTION

Front

How do you view the commit history?

Back

git log

4.

FLASHCARD QUESTION

Front

What happens when you run git reset HEAD file.txt?

Back

Removes the file from the staging area but keeps changes in the working directory

5.

FLASHCARD QUESTION

Front

Which command shows changes made between two commits?

Back

git diff

6.

FLASHCARD QUESTION

Front

How do you remove untracked files from the working directory?

Back

git clean -f

7.

FLASHCARD QUESTION

Front

Which file is used to ignore specific files from being tracked?

Back

.gitignore