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

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

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

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

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

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