Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 607 Bytes

File metadata and controls

16 lines (9 loc) · 607 Bytes

Restore File to Previous Version

Company: Slack | Difficulty: Medium


Scenario:

You have a Git repository at /home/interview/repo where the config.js file has been modified in the last two commits, but those changes introduced bugs. You need to restore only config.js to the version it had 2 commits ago without affecting any other files

Task:

Restore config.js to its state from 2 commits ago, stage and commit this change with Restore config.js message.


📹 Video Solution