branch - git checkout '...' always results in error: pathspec '...' did not match any file(s) known to git -
we ran problem our development branch. long story short, i've deleted branch , recreated master. however, every time create new clone of repository , checkout development following:
$ git checkout development error: pathspec 'development' did not match file(s) known git.
i'm able around problem using gregory mcintyre's answer from:
git: cannot checkout branch - error: pathspec '...' did not match file(s) known git
git checkout -t -b development origin/development
i can use branch normal.
however, next time clone repository we'll have same problem , have use same fix.
it's development branch that's having problem, other branches work expected after fresh clone:
$ git checkout staging branch staging set track remote branch staging origin. switched new branch 'staging'
is possible fix development branch workaround isn't required?
Comments
Post a Comment