You do not have a local branch named develop . When you run git checkout develop and no local branches are found, git will understand that you want to create a new local branch named develop based on the develop branch in the remote repo, if one exists. In your case, you have 2 such branches origin/develop and pateketrueke/develop , so there is ambiguity.
You can be more explicit in this using the following form:
git branch develop origin/develop git checkout develop
or
git branch develop pateketrueke/develop git checkout develop
depending on what you want.
They can be abbreviated as:
git checkout -b develop origin/develop
or
git checkout -b develop pateketrueke/develop
source share