Git version must match on local/remote servers

Posted by jeff

I’ve had git setup on my laptop for a few weeks now and I just recently got around to installing it on my own machine. I noticed that the MacPorts version of git was the latest version offered on the git site, so I just ran

sudo port install git-core
and it ran without error.

After fetching one of my projects, I tried to deploy but it failed with the following error message:

git checkout: updating paths is incompatible with switching branches/forcing
** Did you intend to checkout '...' which can not be resolved as commit?

I did a git—version on my machine, which returned 1.5.4.4, but the remote server had version 1.5.4.3. This didn’t pose an issue for fetching or putting, but it does apparently pose an issue when cloning. Updating the remote server’s git to 1.5.4.4 fixed the problem.

I’ve updated my earlier instructions on how to install git with the latest version on CentOS.

References

Comments

Leave a response

Comment