sh$ git checkout origin/remove-compatibility-code Note: moving to 'origin/remove-compatibility-code' which isn't a local branch ... sh$ git branch * (no branch) sh$ git checkout -b remove-compatibility-code Switched to a new branch 'remove-compatibility-code'