To switch from master to a branch or branch to another without merge.git branch
ster
*ma$ git fetch origin <new_branch>
$ git checkout
Branch legacy set up to track remote branch legacy from origin.
Switched to a new branch ‘new_branch'
$ git pull
$ git branch
* new_branch
master
Leave a Reply