Git head pointer after separation, push error fatal: you are not currently on a branch. Solution

Confirm current on which branch: git branch

Separating the head pointer is determined, and then switch back to the main branch

Switching operation: git checkout master

Enter github account password, and then you can push a success,

Guess you like

Origin blog.csdn.net/weixin_44786530/article/details/91956794