Pregunta

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.

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top