We ran into a problem with our development branch. Long story short, I've deleted the branch and recreated it from master. However, every time we create a new clone of the repository and checkout development we get the following:
$ git checkout development
error: pathspec 'development' did not match any file(s) known to git.
I'm able to get around the problem using Gregory McIntyre's answer from:
Git: cannot checkout branch - error: pathspec '...' did not match any file(s) known to git
git checkout -t -b development origin/development
I can then use the branch as normal.
However, the next time we clone the repository we'll have the same problem and have to use the same fix.
It's only the development branch that's having this problem, other branches work as expected after a fresh clone:
$ git checkout staging
Branch staging set up to track remote branch staging from origin.
Switched to a new branch 'staging'
Is it possible to fix the development branch so that the workaround isn't required?