Causes and solutions of detached HEAD

Project scenario:

springboot+git

Problem Description:

Due to some reasons, the local code has carried out the historical node restoration operation, and then restored it, wrote the code and submitted it, and the branch shows
detached HEAD

solution:

Rename the current branch: git branch new_branch
idea operation:
insert image description here

Guess you like

Origin blog.csdn.net/u012129030/article/details/123245146