Are you trying to git pull or git push and receiving the nasty Github cannot lock existing info/refs fatal? There is a nice and quick easy fix. Run the following command:
git remote prune origin
Don’t worry, this won’t mess up any remote or local branches. What it will do is update your local references you have to remote branch references. Sometimes Git has some local branch data that cannot be read by Git. Oh well, it happens. Prune and move along.