I have some garbage commits in my git repositry. These have been created by e.g. the git gui when changing the latest commit again and accidently creating additional commits
Try this:
git reflog expire --expire=now git gc --prune=now