Total Pageviews

Tuesday, 17 December 2024

如何更改github仓库的默认分支

 

    Changing the default branch

    1. On GitHub, navigate to the main page of the repository.

    2. Under your repository name, click

    Settings. If you cannot see the "Settings" tab, select the
  1. dropdown menu, then click Settings.

    Screenshot of a repository header showing the tabs. The "Settings" tab is highlighted by a dark orange outline.

  2. Under "Default branch", to the right of the default branch name, click

  3. .

  4. Select the branch dropdown menu and click a branch name.

  5. Click Update.

  6. Read the warning, then click I understand, update the default branch.

    from https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch

No comments:

Post a Comment