switch branch local conflicts git code example
Example 1: git switch branch
git switch <branch_name>
git checkout <branch_name>
Example 2: git create branch
$ vim index.html
$ git commit -a -m 'Create new footer [issue 53]'
git switch <branch_name>
git checkout <branch_name>
$ vim index.html
$ git commit -a -m 'Create new footer [issue 53]'