I am not sure what this person keeps doing, but I keep getting into situations where my git pull (on master) fails like so
(base) Deans-MacBook-Pro:webpieces dean$ git pull
error: cannot update the ref 'refs/remotes/origin/victor/Delete_List_Copy': unable to append to '.git/logs/refs/remotes/origin/victor/Delete_List_Copy': Not a directory
From github.com:deanhiller/webpieces
! [new branch] victor/Delete_List_Copy -> origin/victor/Delete_List_Copy (unable to update local ref)
I run these commands which run just fine
- git clone git@github.com:deanhiller/webpieces.git webpieces3
- git checkout victor/Delete_List_Copy
I am not sure what he does exactly but eventually my git repo has this directory which I keep deleting (and which does not exist via git branch -r neither) ->
.git/refs/remotes/origin/victor/
I then run
- rmdir .git/refs/remotes/origin/victor/
- git pull
git pull fails with the first error in this SO post. The victor directory is back with a vengeance and I have no idea why.
Next, I try git remote prune origin
This does not help as git pull results in same error.
Over time, each repo seems to become corrupt on just git pull. I have no idea why this is occurring nor how to fix this repo resulting in yet another git clone to start over :(