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: