Add backup feature before resetting back to the latest commit on the target file.