How do I create a new branch from the existing remote branch on GitHub using CLI?

Viewed 7434

I'm a newbie to Git/GitHub.

Actually,I know how to create a new branch from the existing remote branch on GitHub by GitHub GUI Interface like below.

Creating and deleting branches within your repository

The CLI(Command Line) for this procedure is correct below?

git checkout -b new_branch_name origin/existing_branch_name_on_git_hub

Does anyone tell me a exact way?

1 Answers
Related