Difference Between Main Branch and Master Branch in Github?

前端 未结 3 1839
遇见更好的自我
遇见更好的自我 2020-12-30 04:42

I tried git push on master branch but it just shows that I have new pull request but when I click on new pull request it takes me to comparing changes but doesn\'t show any

3条回答
  •  Happy的楠姐
    2020-12-30 05:25

    The main branch has already replaced all new github repos as the main branch. You can read up on it here. There is no actual difference between main and master, it's just the name of the default branch.

    For you git push origin master just creates a new branch called master (since it doesn't exist already) and pushes your current commits there.

提交回复
热议问题