Error in git repository:

3

It looks like I made some mess with the underlying Git repository and it was broken, rendering it invalid.

Error:

  

error: pathspec 'development' did not match any file (s) known to git.

I used these commands but had no effect.

rm .git/refs/remotes/origin/development

git fetch

git branch --set-upstream-to=origin/development
    
asked by anonymous 13.06.2018 / 15:57

1 answer

1

There are different reasons for this error to occur.

In your case, it appears that you accidentally removed the development branch from the repository with git branch -D development . In this case, to resolve would need to recreate the local branch again with:

git checkout -b development

Or, if it is an alternative, do git clone again from the repository:).

    
14.08.2018 / 23:42