have all changes from a local branch to a new local branch git code example Example: have all changes from a local branch to a new local branch git git switch -c <new-branch>