I often clone git repositories using the –depth=1 option; it saves time and disk space.

There’s one caveat when doing so: often the local repository does not have information about remote branches and a “git checkout {branch}” will fail.

Sometimes the error message is something like “Did you intend  to checkout origin/{branch}” which cannot be resolved as commit?” (how cryptical/typical …)

The command that worked for me was (Dev_3_13 is the remote branch name):

git fetch origin Dev_3_13:Dev_3_13