HEAD detached at origin / master

2

I started studying shortly, Git, and I was creating a branch, but I ended up creating more branch than I wanted. So I was deleting the branch I did not want with the command line:

To delete the branch locally: git branch -D <nome do branch>

I deleted all of them with only the master, but the following branch HEAD detached at origin/master appeared

Can anyone help me tell me what I should do, or rather, what I did wrong?!

    
asked by anonymous 26.01.2018 / 13:57

1 answer

1

You probably are not in branch master , this should solve your problem:

git checkout master
    
26.01.2018 / 14:17