🔥 3-day streak
Cisco CCNP Automation AUTOCOR (350-901)46 / 136
Question 46 of 136

A network automation engineer checks out a specific commit hash to test an experimental Jinja2 template change: 'git checkout a1b2c3d'. Git warns they are in a 'detached HEAD' state. The engineer makes two commits with the fixed template and validates the config generation successfully. Before returning to work, they run 'git checkout main'. The next day they realize the two commits are gone from the log and want to preserve that work properly. What is the correct sequence to recover and preserve the commits?

Reviewed for accuracy · Report an issueNext question