1. Check the list of branches by git branch. The current branch is designated by *.

Untitled

  1. To change the branch, type git checkout [branch name]. This changes the files in the folder according to the branch.

Untitled

  1. To make a new branch, type git checkout -b [branch name]. For example, if you make a new branch named test, type as follows:

Untitled

  1. When you push the newly created branch to the remote repository, git asks you to set the upstream.

Untitled

  1. By typing the suggested command, you can make a new branch in the remote repository and push the local changes to it

Untitled

  1. On GitHub, you will find the new branch here.

Untitled