After running git gc the following error occurs:
fatal: bad object refs/remotes/origin/HEAD
fatal: failed to run repack
fatal: failed to run repack
Possible wrong branch in:
.git/refs/remotes/origin/HEAD
Example:
ref: refs/remotes/origin/acceptance
You can automaticly restore the branch with:
git remote set-head origin --auto
Output:
origin/HEAD set to test-alpha
Categorieën
Git