Why does my 'git branch' have no master?

前端 未结 9 1153
醉梦人生
醉梦人生 2020-12-12 12:51

I\'m a git newbie and I keep reading about a \"master\" branch. Is \"master\" just a conventional name that people used or does it have special meaning like HEAD

9条回答
  •  庸人自扰
    2020-12-12 13:40

    I ran into the same issue and figured out the problem. When you initialize a repository there aren't actually any branches. When you start a project run git add . and then git commit and the master branch will be created.

    Without checking anything in you have no master branch. In that case you need to follow the steps other people here have suggested.

提交回复
热议问题