Exam3

devops / Git • 20 questions

Question 1 of 20
Which command initializes an empty Git repository in the current directory?
Question 2 of 20
Which command shows the status of tracked and untracked files?
Question 3 of 20
Which command stages all tracked modified and deleted files?
Question 4 of 20
Which command amends the most recent commit?
Question 5 of 20
Which command shows the commit history with branch and merge graph?
Question 6 of 20
Which command switches to a new branch named feature-login using modern syntax?
Question 7 of 20
Which command lists both local and remote branches?
Question 8 of 20
Which command fetches updates from all remotes?
Question 9 of 20
Which strategy keeps merge history by creating a merge commit even if fast-forward is possible?
Question 10 of 20
Which command reapplies commits on top of another base branch?
Question 11 of 20
Which command compares the working directory with the staging area?
Question 12 of 20
Which command discards local changes in file app.py and restores it from the last commit?
Question 13 of 20
Which modern command restores a file from HEAD?
Question 14 of 20
Which command saves uncommitted changes with a custom message?
Question 15 of 20
Which command creates an annotated tag v2.0 with a message?
Question 16 of 20
Which command removes a remote named origin?
Question 17 of 20
Which command applies a specific commit from another branch onto the current branch?
Question 18 of 20
Which reset mode keeps working directory changes but unstages them?
Question 19 of 20
Which command shows changes introduced by a specific commit?
Question 20 of 20
Which command removes untracked files from the working directory?
← Back