search

Home  >  Q&A  >  body text

I found this situation when git push

I have not created other branches. What is the difference between head and master?
The default is to submit to master

滿天的星座滿天的星座2836 days ago657

reply all(2)I'll reply

  • 为情所困

    为情所困2017-05-02 09:29:37

    master means main, so this name is usually used to name the main branch. HEAD is not a branch, but a pointer to the branch where the current local environment is located. But here it seems that you regarded it as a branch name and pushed it to the remote end, becoming a remote branch.

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-02 09:29:37

    HEAD is the current branch, so it is no different from master (because you only have one branch, master)

    See similar answers

    reply
    0
  • Cancelreply