set different branch git code example
Example 1: canging branch in git
$ git checkout <existing_branch>
$ git checkout -b <new_branch>
Example 2: how to switch to another branch in git
Github branch
pull request in branch
$ git checkout <existing_branch>
$ git checkout -b <new_branch>
Github branch
pull request in branch