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

Popular posts from this blog

methods - python can't use function in submodule -

Java 3D LWJGL collision -

c# - ErrorThe type or namespace name 'AxWMPLib' could not be found (are you missing a using directive or an assembly reference?) -