Tuesday, June 11, 2013

git error message '... does not point to a valid object'

I tried to sync my local git repository to the remote server and got some error messages saying certain objects are not valid object: "... does not point to a vlid object".

After searching the net, these two commands solve my problem:

git remote prune origin
git gc --prune=now

After that, re-sync my repository without problem.

Post a Comment