Why does my 'git branch' have no master?

前端 未结 9 1146
醉梦人生
醉梦人生 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:19

    master is just the name of a branch, there's nothing magic about it except it's created by default when a new repository is created.

    You can add it back with git checkout -b master.

提交回复
热议问题