Difference Between Main Branch and Master Branch in Github?

前端 未结 3 1830
遇见更好的自我
遇见更好的自我 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条回答
  •  自闭症患者
    2020-12-30 05:16

    GitHub is working on replacing the term "master" on its service with a neutral term like "main" to avoid any unnecessary references to slavery,

    you can read here for more background the reason for the change https://www.zdnet.com/article/github-to-replace-master-with-alternative-term-to-avoid-slavery-references/

    about renaming your branch from master to main: there are a lot of guidelines for example here https://jarv.is/notes/github-rename-master/

    git branch -m master main
    git push -u origin main
    git remote set-head origin main

提交回复
热议问题