1
0
mirror of synced 2025-12-23 21:07:12 -05:00

Document features and changes for phase 2.5 of master/main transition (#15745)

This commit is contained in:
Matt Pollard
2020-10-02 01:43:01 +02:00
committed by GitHub
parent 16dd6b4654
commit aa3a4edb62
80 changed files with 206 additions and 191 deletions

View File

@@ -23,7 +23,7 @@ $ git clone https://{% data variables.command_line.codeblock %}/<em>user</em>/<e
```
To fix the error, you'll need to be an administrator of the repository on {% data variables.product.product_location %}.
You'll want to [change the default branch](/articles/setting-the-default-branch) of the repository.
You'll want to [change the default branch](/github/administering-a-repository/changing-the-default-branch) of the repository.
After that, you can get a list of all the available branches from the command line:
@@ -32,14 +32,14 @@ $ git branch -a
# Lists ALL the branches
> remotes/origin/awesome
> remotes/origin/more-work
> remotes/origin/new-master
> remotes/origin/new-main
```
Then, you can just switch to your new branch:
```shell
$ git checkout new-master
$ git checkout new-main
# Create and checkout a tracking branch
> Branch new-master set up to track remote branch new-master from origin.
> Switched to a new branch 'new-master'
> Branch new-main set up to track remote branch new-main from origin.
> Switched to a new branch 'new-main'
```