Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top