exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 23 discussion

Actual exam question from Cisco's 350-901
Question #: 23
Topic #: 1
[All 350-901 Questions]

Which Git command enables the developer to revert back to f414f31 commit to discard changes in the current working tree?

  • A. git reset --hard f414f31
  • B. git reset checkout --hard f414f31
  • C. git reset --soft f414f31
  • D. git checkout f414f31
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
tartarus23
6 months, 2 weeks ago
Selected Answer: A
The correct answer is A. git reset --hard f414f31. This command will reset the current branch to the specified commit (in this case f414f31), discarding all changes made since that commit. The --hard option tells Git to reset both the index and the working directory to match the specified commit.
upvoted 2 times
...
rajesh034
1 year, 7 months ago
A is correct answer
upvoted 1 times
...
duracell
1 year, 10 months ago
Selected Answer: A
A is correct.
upvoted 3 times
...
lente_kriebels
2 years, 2 months ago
Correct answer
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago