search

Home  >  Q&A  >  body text

git - Can a bare repository have multiple branches?

I set up a git server on the server and built a bare warehouse. In addition to the master branch, can there be more branches?

天蓬老师天蓬老师2871 days ago622

reply all(2)I'll reply

  • 習慣沉默

    習慣沉默2017-05-02 09:45:40

    Since there are branches, naturally it cannot be called a bare library, because having a branch means there are commits. In this case, it means that other branches can also be established.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-02 09:45:40

    Bare repository—that is, a repository that does not contain the current working directory

    reply
    0
  • Cancelreply