문제

I'm getting suddenly this error when I try to pull changes from repository:

git pull
fatal: http://guthub.com/msalsas/BunchOfColors/info/refs not valid: is this a git repository?

Seems to be a typo ("guthub"), because if I do it in this way:

git pull http://github.com/msalsas/BunchOfColors

it works. The thing is that I don't know what could cause this problem and how to solve it. I've been working with this repo before and pulling changes without any problem.

도움이 되었습니까?

해결책

It's mostly likely a typo in your remote configuration. Assuming that it's called origin (the default), you can fix it with:

git remote set-url origin http://github.com/msalsas/BunchOfColors

Or fix it by hand by editing the offending line in .git/config.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top