switch branch name git code example Example 1: how to switch to another branch in git Github branch pull request in branch Example 2: canging branch in git $ git branch