Exam2

devops / Git • 20 questions

Question 1 of 20
Which command displays the installed Git version?
Question 2 of 20
Which command stages a specific file named app.py?
Question 3 of 20
Which command commits staged changes with message 'fix bug'?
Question 4 of 20
Which command shows a compact one-line commit history?
Question 5 of 20
Which command creates a new branch named test?
Question 6 of 20
Which command switches to branch main?
Question 7 of 20
Which command downloads remote changes without merging?
Question 8 of 20
Which command combines changes from another branch?
Question 9 of 20
Which command removes the last commit but keeps changes locally?
Question 10 of 20
Which command creates a new commit that reverses a previous commit?
Question 11 of 20
Which command compares staged changes against the last commit?
Question 12 of 20
Which command pushes a branch and sets upstream tracking?
Question 13 of 20
Which command lists saved stashes?
Question 14 of 20
Which command reapplies the most recent stash and removes it from stash list?
Question 15 of 20
Which command lists all tags?
Question 16 of 20
Which command changes the URL of remote origin?
Question 17 of 20
Which command deletes a local branch named old-feature?
Question 18 of 20
Which command clones only a specific branch?
Question 19 of 20
Which command shows all Git configuration values?
Question 20 of 20
Which command shows who changed each line in a file?
← Back