switching git branch in gitbash

C++
$ git checkout <existing_branch>

$ git checkout -b <new_branch>git checkout [branch name]Switch over to the branch "issue1" when you want to add new commits to it.

Use the checkout command to switch branch.

$ git checkout <branch>
Source

Also in C++: