You are working on a Git repository with multiple branches and commits. A file named code.py was accidentally modified in the feature branch, and you need to restore its version from a specific commit in the main branch.
Your task is to:
Switch to the
featurebranch.Use the
checkoutcommand to restore thecode.pyfile to the version from the commitabc123.
Write your solution below line by line.