how to switch a new branch in git in ubuntu code example
Example 1: canging branch in git
$ git checkout <existing_branch>
$ git checkout -b <new_branch>
Example 2: git toggle between branches
Toggle between two git branches: git checkout -
$ git checkout <existing_branch>
$ git checkout -b <new_branch>
Toggle between two git branches: git checkout -