"detached HEAD" state

"detached HEAD" state - the HEAD head pointer points to a specific commit ID, not a reference (branch)

 

The following example is that I added a lot of files in the "detached head pointer" state, but found that it was not on any branch, and switched to the master branch. The previous operation is too late, that is, the operation in the state of "detached head pointer" Meaningless.

 

 

 

According to the above operation, I don't know how to merge the operation done by "separating the head pointer state" , which is similar to the operation done on the master branch. The solution is as follows:

 

Execute the following command

git merge 3f263a6

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326599659&siteId=291194637