Using the GitHub Windows client I did a sync to pull remote changes to my local machine, but before finishing the sync, I ran out of disk space and the sync failed.
It can be a real issue, try to run your Terminal as Administrator instead of user. Worked for me
I removed index
and index.lock
(in the .git
folder) and ran git checkout .
to undo the changes and resolved, but if I wanted to commit the changes I would have run git add -A
after git commit -m "description"
git init
resolved my problem. I was getting below issue.
Rename from '.git/objects/pack/pack-XXXXX.pack' to '.git/objects/pack/old-XXXXX.pack' failed. Should I try again? (y/n)
I'm using Tortoise Git. I just opened a new Windows Explorer and it fixed this. (For command line Git maybe just open a new shell).