Git Commands for Website Development

Git Commands for Website Development

Assessment

Flashcard

Computers

University

Hard

Created by

said bahta

FREE Resource

Student preview

quiz-placeholder

8 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the command to create a new Git repository folder?

Back

git init repository_web_profil

2.

FLASHCARD QUESTION

Front

How do you check the status of files in the working directory?

Back

git status

3.

FLASHCARD QUESTION

Front

What command is used to add all untracked and modified files to the staging area?

Back

git add .

4.

FLASHCARD QUESTION

Front

What command do you use to commit changes with a message?

Back

git commit -m 'your message'

5.

FLASHCARD QUESTION

Front

What command is used to commit modified files without adding them to the staging area again?

Back

git commit -am 'your message'

6.

FLASHCARD QUESTION

Front

How can you view the history of commits in a concise format?

Back

git log --oneline

7.

FLASHCARD QUESTION

Front

What is the command to reset to a previous commit using its hash?

Back

git reset --hard

8.

FLASHCARD QUESTION

Front

How do you restore a deleted file that was previously committed?

Back

git restore