A

Admin • 828.03K Points
Coach

Q. Which command restores a file from the last commit?

  • (A) git restore <file>
  • (B) git checkout <file>
  • (C) git reset <file>
  • (D) Both A and B
  • Correct Answer - Option(D)
  • Views: 1
  • Filed under category Git
  • Hashtags:

Explanation by: Admin
Both git restore and git checkout can restore files.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.